Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.001398/0.001398, allocations: 82.44 kB / 20.68 MB, free: 1.027 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.00149/0.00149, allocations: 164.5 kB / 23.95 MB, free: 4.156 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.464/1.464, allocations: 177.1 MB / 204.3 MB, free: 9.176 MB / 190.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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 325.1 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.944e-05/3.1e-05, allocations: 6.281 kB / 325.1 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004624/0.004655, allocations: 2.937 MB / 328 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001921/0.006576, allocations: 0.7882 MB / 328.8 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001774/0.006753, allocations: 10.09 kB / 328.8 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002006/0.006954, allocations: 56.97 kB / 328.9 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002447/0.007199, allocations: 103.8 kB / 329 MB, free: 13.87 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005258/0.007725, allocations: 132.3 kB / 329.1 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005964/0.008321, allocations: 433.9 kB / 329.5 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002339/0.008555, allocations: 92.39 kB / 329.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004285/0.008983, allocations: 248.9 kB / 329.9 MB, free: 13.42 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002691/0.009253, allocations: 127 kB / 330 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.319e-05/0.009316, allocations: 34.09 kB / 330 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001033/0.009419, allocations: 42.14 kB / 330.1 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.851e-05/0.009518, allocations: 80.38 kB / 330.1 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001948/0.009712, allocations: 131.7 kB / 330.3 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006388/0.01035, allocations: 443.4 kB / 330.7 MB, free: 13.04 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.249e-06/0.01036, allocations: 5.031 kB / 330.7 MB, free: 13.04 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.01036, allocations: 0 / 330.7 MB, free: 13.04 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.724e-06/0.01037, allocations: 0 / 330.7 MB, free: 13.04 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.00118/0.01155, allocations: 0.5737 MB / 331.3 MB, free: 12.56 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/0.01159, allocations: 13.58 kB / 331.3 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002174/0.01181, allocations: 56.03 kB / 331.3 MB, free: 12.53 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004499/0.01226, allocations: 224.6 kB / 331.6 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001416/0.0124, allocations: 134.9 kB / 331.7 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.57e-05/0.01247, allocations: 29.5 kB / 331.7 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007019/0.01317, allocations: 396.7 kB / 332.1 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.01318, allocations: 192 / 332.1 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.999e-05/0.01322, allocations: 15.75 kB / 332.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.26e-05/0.01324, allocations: 8 kB / 332.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004816/0.01372, allocations: 225.2 kB / 332.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00198/0.0157, allocations: 1.186 MB / 333.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003689/0.01607, allocations: 160.9 kB / 333.7 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001824/0.01625, allocations: 88.91 kB / 333.8 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.277e-05/0.01627, allocations: 2.188 kB / 333.8 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003352/0.01661, allocations: 216.7 kB / 334 MB, free: 10.39 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.583e-06/0.01661, allocations: 0 / 334 MB, free: 10.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001202/0.01781, allocations: 321.2 kB / 334.3 MB, free: 10.22 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.24e-05/0.0179, allocations: 109.3 kB / 334.4 MB, free: 10.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002827/0.01819, allocations: 247.6 kB / 334.7 MB, free: 9.914 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.324e-05/0.01822, allocations: 27.48 kB / 334.7 MB, free: 9.883 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001662/0.01838, allocations: 219 kB / 334.9 MB, free: 9.68 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.484e-05/0.01846, allocations: 67.8 kB / 335 MB, free: 9.621 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001119/0.01857, allocations: 64.11 kB / 335 MB, free: 9.574 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001757/0.01875, allocations: 341 kB / 335.4 MB, free: 9.238 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001734/0.01892, allocations: 77.8 kB / 335.4 MB, free: 9.203 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002885/0.01921, allocations: 224.7 kB / 335.7 MB, free: 8.98 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003963/0.01961, allocations: 232.1 kB / 335.9 MB, free: 8.805 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.01961, allocations: 1.281 kB / 335.9 MB, free: 8.805 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008556/0.02046, allocations: 345.5 kB / 336.2 MB, free: 8.617 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.414e-05/0.02049, allocations: 10.83 kB / 336.2 MB, free: 8.613 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.0205, allocations: 2.531 kB / 336.2 MB, free: 8.613 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000322/0.02082, allocations: 59.78 kB / 336.3 MB, free: 8.578 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000268/0.02109, allocations: 64.34 kB / 336.4 MB, free: 8.562 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001504/0.02259, allocations: 1.436 MB / 337.8 MB, free: 7.125 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002754/0.02287, allocations: 45.98 kB / 337.8 MB, free: 7.098 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.853e-05/0.0229, allocations: 17.47 kB / 337.9 MB, free: 7.09 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * 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.000181/0.02308, allocations: 147.5 kB / 338 MB, free: 6.953 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.353e-05/0.02312, allocations: 27.38 kB / 338 MB, free: 6.938 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.894e-05/0.02317, allocations: 31.95 kB / 338.1 MB, free: 6.918 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.02317, allocations: 3.094 kB / 338.1 MB, free: 6.918 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.02318, allocations: 0 / 338.1 MB, free: 6.918 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.02319, allocations: 7.984 kB / 338.1 MB, free: 6.91 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002989/0.02348, allocations: 236.4 kB / 338.3 MB, free: 6.707 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.02349, allocations: 1.438 kB / 338.3 MB, free: 6.707 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001914/0.02368, allocations: 35.69 kB / 338.3 MB, free: 6.699 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001872/0.02387, allocations: 55.97 kB / 338.4 MB, free: 6.664 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.691e-05/0.02388, allocations: 6.469 kB / 338.4 MB, free: 6.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001318/0.0252, allocations: 1.302 MB / 339.7 MB, free: 5.348 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.0252, allocations: 1.562 kB / 339.7 MB, free: 5.348 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007783/0.02598, allocations: 350.5 kB / 340 MB, free: 5.133 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.802e-05/0.02608, allocations: 37.62 kB / 340.1 MB, free: 5.105 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.206e-05/0.02612, allocations: 9.109 kB / 340.1 MB, free: 5.098 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001675/0.02629, allocations: 15.89 kB / 340.1 MB, free: 5.094 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.02639, allocations: 32.98 kB / 340.1 MB, free: 5.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.954e-05/0.02641, allocations: 8.672 kB / 340.2 MB, free: 5.066 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001852/0.0266, allocations: 167.1 kB / 340.3 MB, free: 4.945 MB / 302.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.0266, allocations: 0 / 340.3 MB, free: 4.945 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004641/0.02706, allocations: 93.34 kB / 340.4 MB, free: 4.922 MB / 302.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: 5 ($whenCondition1,switch1.off,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): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.000156/0.02722, allocations: 108.4 kB / 340.5 MB, free: 4.824 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000672/0.02789, allocations: 302 kB / 340.8 MB, free: 4.629 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.02789, allocations: 0 / 340.8 MB, free: 4.629 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003525/0.02824, allocations: 196 kB / 341 MB, free: 4.477 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000321/0.02857, allocations: 35.11 kB / 341 MB, free: 4.457 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001505/0.03007, allocations: 0.619 MB / 341.7 MB, free: 3.828 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001626/0.03023, allocations: 164.8 kB / 341.8 MB, free: 3.645 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.781e-05/0.03033, allocations: 34.2 kB / 341.8 MB, free: 3.613 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.781e-05/0.03039, allocations: 20.5 kB / 341.9 MB, free: 3.594 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.03039, allocations: 4 kB / 341.9 MB, free: 3.59 MB / 302.1 MB Notification: Performance of Templates: time 0.00762/0.03801, allocations: 2.913 MB / 344.8 MB, free: 0.7227 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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: 4.668277371674776]