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.001729/0.001729, allocations: 99.66 kB / 21.18 MB, free: 0.5273 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.001696/0.001696, allocations: 213.2 kB / 24.48 MB, free: 3.84 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.588/1.588, allocations: 230.6 MB / 258.2 MB, free: 7.82 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.001648/0.001648, allocations: 43.94 kB / 379 MB, free: 2.496 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2436/0.2452, allocations: 53.37 MB / 432.3 MB, free: 6.75 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004309/0.2495, allocations: 2.696 MB / 435 MB, free: 4.047 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001468/0.251, allocations: 0.7361 MB / 435.8 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001449/0.2511, allocations: 7.938 kB / 435.8 MB, free: 3.297 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001662/0.2513, allocations: 51.5 kB / 435.8 MB, free: 3.246 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001925/0.2515, allocations: 87.19 kB / 435.9 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003535/0.2518, allocations: 111.8 kB / 436 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004403/0.2523, allocations: 374.4 kB / 436.4 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001964/0.2525, allocations: 79.67 kB / 436.5 MB, free: 2.602 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001765/0.2527, allocations: 143.5 kB / 436.6 MB, free: 2.461 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000217/0.2529, allocations: 127.4 kB / 436.7 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.819e-05/0.2529, allocations: 28 kB / 436.8 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.363e-05/0.253, allocations: 32 kB / 436.8 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.313e-05/0.2531, allocations: 75.73 kB / 436.9 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000155/0.2532, allocations: 139.4 kB / 437 MB, free: 2.066 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004328/0.2537, allocations: 357.6 kB / 437.4 MB, free: 1.719 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.2537, allocations: 4 kB / 437.4 MB, free: 1.715 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2537, allocations: 0 / 437.4 MB, free: 1.715 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.241e-05/0.2537, allocations: 7.938 kB / 437.4 MB, free: 1.707 MB / 334.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.001061/0.2547, allocations: 0.5378 MB / 437.9 MB, free: 1.141 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.51e-05/0.2548, allocations: 8.031 kB / 437.9 MB, free: 1.133 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.894e-05/0.2549, allocations: 40.7 kB / 438 MB, free: 1.094 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003997/0.2553, allocations: 210.7 kB / 438.2 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000121/0.2554, allocations: 124 kB / 438.3 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.784e-05/0.2554, allocations: 28.38 kB / 438.3 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005945/0.256, allocations: 361.4 kB / 438.7 MB, free: 320 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.2561, allocations: 3.984 kB / 438.7 MB, free: 316 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.956e-05/0.2561, allocations: 8 kB / 438.7 MB, free: 308 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.675e-05/0.2561, allocations: 8 kB / 438.7 MB, free: 300 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003644/0.2565, allocations: 190.5 kB / 438.9 MB, free: 108 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001692/0.2582, allocations: 0.9652 MB / 439.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003339/0.2585, allocations: 146.6 kB / 440 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001436/0.2586, allocations: 76.77 kB / 440 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.94e-05/0.2587, allocations: 4 kB / 440.1 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003145/0.259, allocations: 207.3 kB / 440.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.934e-06/0.259, allocations: 0 / 440.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0011/0.2601, allocations: 309.7 kB / 440.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.54e-05/0.2602, allocations: 110.8 kB / 440.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002178/0.2604, allocations: 199.8 kB / 440.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.933e-05/0.2604, allocations: 33.7 kB / 440.9 MB, free: 13.92 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001431/0.2605, allocations: 184.4 kB / 441.1 MB, free: 13.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.739e-05/0.2606, allocations: 75.36 kB / 441.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001007/0.2607, allocations: 57.66 kB / 441.2 MB, free: 13.6 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001645/0.2609, allocations: 338.8 kB / 441.5 MB, free: 13.26 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001304/0.261, allocations: 63.97 kB / 441.6 MB, free: 13.2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002407/0.2613, allocations: 196 kB / 441.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002978/0.2615, allocations: 192.2 kB / 442 MB, free: 12.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.2616, allocations: 0 / 442 MB, free: 12.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004699/0.262, allocations: 280.6 kB / 442.2 MB, free: 12.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.262, allocations: 8 kB / 442.3 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.262, allocations: 0 / 442.3 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002675/0.2623, allocations: 52.81 kB / 442.3 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00022/0.2625, allocations: 55.91 kB / 442.4 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001487/0.264, allocations: 1.442 MB / 443.8 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002201/0.2642, allocations: 35.83 kB / 443.8 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.632e-05/0.2643, allocations: 12 kB / 443.9 MB, free: 10.75 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.0001628/0.2644, allocations: 149.9 kB / 444 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.739e-05/0.2645, allocations: 23.84 kB / 444 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.797e-05/0.2645, allocations: 25.95 kB / 444 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.2645, allocations: 4 kB / 444.1 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.505e-06/0.2645, allocations: 0 / 444.1 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.2645, allocations: 0 / 444.1 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000279/0.2648, allocations: 217.2 kB / 444.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.2648, allocations: 0 / 444.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001667/0.265, allocations: 39.92 kB / 444.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001852/0.2652, allocations: 56.75 kB / 444.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.089e-05/0.2652, allocations: 7.984 kB / 444.4 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001263/0.2665, allocations: 1.295 MB / 445.7 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.2665, allocations: 4.156 kB / 445.7 MB, free: 8.797 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006611/0.2671, allocations: 321.7 kB / 446 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.371e-05/0.2672, allocations: 39.8 kB / 446 MB, free: 8.422 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.314e-05/0.2672, allocations: 4 kB / 446 MB, free: 8.418 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001807/0.2674, allocations: 23.98 kB / 446 MB, free: 8.395 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.956e-05/0.2675, allocations: 35.81 kB / 446.1 MB, free: 8.359 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.311e-05/0.2675, allocations: 4.062 kB / 446.1 MB, free: 8.355 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001428/0.2677, allocations: 153.5 kB / 446.2 MB, free: 8.207 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2677, allocations: 0 / 446.2 MB, free: 8.207 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003711/0.268, allocations: 79.89 kB / 446.3 MB, free: 8.129 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.0001292/0.2682, allocations: 103.2 kB / 446.4 MB, free: 8.016 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005715/0.2687, allocations: 278.5 kB / 446.7 MB, free: 7.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2687, allocations: 0 / 446.7 MB, free: 7.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000302/0.269, allocations: 204.4 kB / 446.9 MB, free: 7.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002754/0.2693, allocations: 37.7 kB / 446.9 MB, free: 7.488 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001619/0.2709, allocations: 0.6808 MB / 447.6 MB, free: 6.773 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001552/0.2711, allocations: 154.7 kB / 447.8 MB, free: 6.605 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.597e-05/0.2712, allocations: 23.44 kB / 447.8 MB, free: 6.586 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2712, allocations: 0 / 447.8 MB, free: 6.586 MB / 350.1 MB Notification: Performance of Templates: time 0.006936/0.2781, allocations: 4.211 MB / 452 MB, free: 2.383 MB / 350.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/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: 7.523944165091962]