Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001992/0.001992, allocations: 124.3 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002676/0.002676, allocations: 203.3 kB / 20.74 MB, free: 2.281 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.689/1.689, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001962/0.001962, allocations: 55.92 kB / 373.5 MB, free: 9.773 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.139/0.1409, allocations: 53.32 MB / 426.8 MB, free: 4.355 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.00644/0.1474, allocations: 2.892 MB / 429.7 MB, free: 1.445 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002145/0.1495, allocations: 0.775 MB / 430.5 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002042/0.1497, allocations: 4 kB / 430.5 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002297/0.1499, allocations: 51.5 kB / 430.5 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002949/0.1502, allocations: 95.12 kB / 430.6 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005192/0.1508, allocations: 99.81 kB / 430.7 MB, free: 428 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006884/0.1514, allocations: 370.4 kB / 431.1 MB, free: 56 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2123/0.3637, allocations: 81.22 kB / 431.2 MB, free: 8.121 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003219/0.3641, allocations: 142.9 kB / 431.3 MB, free: 8.121 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002302/0.3643, allocations: 156 kB / 431.5 MB, free: 8.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.987e-05/0.3643, allocations: 30.38 kB / 431.5 MB, free: 8.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.985e-05/0.3644, allocations: 30.81 kB / 431.5 MB, free: 8.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.465e-05/0.3645, allocations: 70.31 kB / 431.6 MB, free: 8.078 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000161/0.3646, allocations: 161.5 kB / 431.7 MB, free: 8.035 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004596/0.3651, allocations: 371.4 kB / 432.1 MB, free: 7.977 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.3651, allocations: 0 / 432.1 MB, free: 7.977 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3651, allocations: 1.156 kB / 432.1 MB, free: 7.977 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.3651, allocations: 0 / 432.1 MB, free: 7.977 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0009593/0.3661, allocations: 0.6048 MB / 432.7 MB, free: 7.531 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.3661, allocations: 10 kB / 432.7 MB, free: 7.531 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.48e-05/0.3662, allocations: 41.38 kB / 432.8 MB, free: 7.512 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000288/0.3665, allocations: 278.7 kB / 433 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.372e-05/0.3665, allocations: 76.91 kB / 433.1 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.944e-05/0.3666, allocations: 28.66 kB / 433.1 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004305/0.367, allocations: 303.4 kB / 433.4 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.367, allocations: 5.031 kB / 433.4 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.036e-05/0.3671, allocations: 10.72 kB / 433.5 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.3671, allocations: 8.531 kB / 433.5 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003119/0.3674, allocations: 190.9 kB / 433.6 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001495/0.3689, allocations: 1.123 MB / 434.8 MB, free: 6.531 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003063/0.3692, allocations: 148.4 kB / 434.9 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001287/0.3693, allocations: 75.73 kB / 435 MB, free: 6.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.135e-05/0.3693, allocations: 1.984 kB / 435 MB, free: 6.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002316/0.3696, allocations: 153.8 kB / 435.1 MB, free: 6.426 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.392e-06/0.3696, allocations: 3.562 kB / 435.1 MB, free: 6.426 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001089/0.3707, allocations: 386.6 kB / 435.5 MB, free: 6.277 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.214e-05/0.3707, allocations: 107.1 kB / 435.6 MB, free: 6.152 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002209/0.3709, allocations: 221.6 kB / 435.8 MB, free: 6.047 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.249e-05/0.3709, allocations: 38.55 kB / 435.9 MB, free: 6.016 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.811e-05/0.371, allocations: 184.7 kB / 436.1 MB, free: 5.887 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.911e-05/0.3711, allocations: 73.3 kB / 436.1 MB, free: 5.844 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.946e-05/0.3712, allocations: 56.02 kB / 436.2 MB, free: 5.828 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.829e-05/0.3712, allocations: 333.2 kB / 436.5 MB, free: 5.512 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001302/0.3714, allocations: 74.48 kB / 436.6 MB, free: 5.512 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001567/0.3715, allocations: 143.2 kB / 436.7 MB, free: 5.426 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002438/0.3718, allocations: 190.5 kB / 436.9 MB, free: 5.355 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.3718, allocations: 0 / 436.9 MB, free: 5.355 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004405/0.3722, allocations: 275.6 kB / 437.2 MB, free: 5.297 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.3722, allocations: 5.281 kB / 437.2 MB, free: 5.297 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.3722, allocations: 2.219 kB / 437.2 MB, free: 5.297 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002877/0.3725, allocations: 57.67 kB / 437.2 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002519/0.3728, allocations: 50.2 kB / 437.3 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001099/0.3739, allocations: 1.571 MB / 438.9 MB, free: 3.789 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002609/0.3741, allocations: 38.62 kB / 438.9 MB, free: 3.773 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.222e-05/0.3741, allocations: 9.125 kB / 438.9 MB, free: 3.773 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001265/0.3743, allocations: 155.2 kB / 439.1 MB, free: 3.652 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.948e-05/0.3743, allocations: 23.45 kB / 439.1 MB, free: 3.641 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.223e-05/0.3744, allocations: 32.36 kB / 439.1 MB, free: 3.629 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-06/0.3744, allocations: 1.281 kB / 439.1 MB, free: 3.629 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.3744, allocations: 1.344 kB / 439.1 MB, free: 3.629 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.3744, allocations: 1.453 kB / 439.1 MB, free: 3.629 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003078/0.3747, allocations: 324.9 kB / 439.4 MB, free: 3.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.3747, allocations: 4.969 kB / 439.4 MB, free: 3.426 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001728/0.3749, allocations: 34.67 kB / 439.5 MB, free: 3.426 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000202/0.3751, allocations: 51.92 kB / 439.5 MB, free: 3.414 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.171e-05/0.3751, allocations: 8.094 kB / 439.5 MB, free: 3.414 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009303/0.376, allocations: 1.419 MB / 441 MB, free: 2.051 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.376, allocations: 4.266 kB / 441 MB, free: 2.051 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000688/0.3767, allocations: 324.1 kB / 441.3 MB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.358e-05/0.3768, allocations: 112.6 kB / 441.4 MB, free: 1.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.766e-05/0.3768, allocations: 11.08 kB / 441.4 MB, free: 1.762 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001841/0.377, allocations: 19.97 kB / 441.4 MB, free: 1.762 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001054/0.3771, allocations: 32.23 kB / 441.4 MB, free: 1.754 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.627e-05/0.3771, allocations: 5.516 kB / 441.5 MB, free: 1.754 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001494/0.3773, allocations: 165.7 kB / 441.6 MB, free: 1.652 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3773, allocations: 0 / 441.6 MB, free: 1.652 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004226/0.3777, allocations: 82.12 kB / 441.7 MB, free: 1.633 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001368/0.3778, allocations: 110.2 kB / 441.8 MB, free: 1.543 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005641/0.3784, allocations: 275.2 kB / 442.1 MB, free: 1.387 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3784, allocations: 1.656 kB / 442.1 MB, free: 1.387 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002647/0.3787, allocations: 194.8 kB / 442.3 MB, free: 1.246 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003215/0.379, allocations: 29.8 kB / 442.3 MB, free: 1.238 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001668/0.3807, allocations: 0.661 MB / 443 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002254/0.3809, allocations: 0.7673 MB / 443.7 MB, free: 160 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001047/0.381, allocations: 26.34 kB / 443.7 MB, free: 156 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.7e-05/0.3811, allocations: 21.41 kB / 443.8 MB, free: 148 kB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3811, allocations: 0 / 443.8 MB, free: 148 kB / 350.1 MB Notification: Performance of Templates: time 0.01006/0.3911, allocations: 3.145 MB / 446.9 MB, free: 15.94 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.161523763090372]