Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009308/0.0009308, allocations: 85.05 kB / 21.5 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008725/0.0008725, allocations: 139.9 kB / 24.89 MB, free: 9.215 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9617/0.9617, allocations: 173.3 MB / 201.5 MB, free: 9.211 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 268.5 MB, free: 6.145 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.187e-05/2.339e-05, allocations: 2.312 kB / 268.5 MB, free: 6.141 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004113/0.004137, allocations: 3.138 MB / 271.7 MB, free: 2.984 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001302/0.005439, allocations: 0.7708 MB / 272.4 MB, free: 2.207 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001328/0.005571, allocations: 4 kB / 272.4 MB, free: 2.203 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001501/0.005722, allocations: 59.42 kB / 272.5 MB, free: 2.145 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001787/0.0059, allocations: 110.9 kB / 272.6 MB, free: 2.035 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002969/0.006197, allocations: 111.7 kB / 272.7 MB, free: 1.926 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000357/0.006554, allocations: 437.9 kB / 273.1 MB, free: 1.496 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001773/0.006732, allocations: 98.97 kB / 273.2 MB, free: 1.398 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002799/0.007011, allocations: 247.5 kB / 273.5 MB, free: 1.156 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002057/0.007217, allocations: 127.6 kB / 273.6 MB, free: 1.031 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.181e-05/0.007269, allocations: 32 kB / 273.6 MB, free: 1 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.115e-05/0.00732, allocations: 36 kB / 273.7 MB, free: 0.9648 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.092e-05/0.007391, allocations: 83.72 kB / 273.8 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000125/0.007516, allocations: 127.7 kB / 273.9 MB, free: 0.7578 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003322/0.007848, allocations: 291 kB / 274.2 MB, free: 484 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.007852, allocations: 0 / 274.2 MB, free: 484 kB / 250.7 MB Notification: Performance of FrontEnd: time 8.01e-07/0.007853, allocations: 0 / 274.2 MB, free: 484 kB / 250.7 MB Notification: Performance of Transformations before backend: time 5.069e-06/0.007858, allocations: 0 / 274.2 MB, free: 484 kB / 250.7 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.0007671/0.008625, allocations: 0.5505 MB / 274.7 MB, free: 15.9 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.008662, allocations: 12.03 kB / 274.7 MB, free: 15.89 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.652e-05/0.008748, allocations: 56.83 kB / 274.8 MB, free: 15.83 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002756/0.009024, allocations: 198.1 kB / 275 MB, free: 15.61 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001008/0.009125, allocations: 128 kB / 275.1 MB, free: 15.46 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.996e-05/0.009175, allocations: 32.38 kB / 275.1 MB, free: 15.43 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000374/0.009549, allocations: 323.3 kB / 275.4 MB, free: 15.08 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.009561, allocations: 192 / 275.4 MB, free: 15.08 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.633e-05/0.009587, allocations: 16.12 kB / 275.5 MB, free: 15.06 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.144e-05/0.009598, allocations: 8 kB / 275.5 MB, free: 15.05 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001803/0.009779, allocations: 100.5 kB / 275.6 MB, free: 14.96 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001222/0.011, allocations: 1.06 MB / 276.6 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001871/0.01119, allocations: 101.7 kB / 276.7 MB, free: 13.72 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.628e-05/0.01124, allocations: 36.84 kB / 276.8 MB, free: 13.68 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.627e-05/0.01126, allocations: 4 kB / 276.8 MB, free: 13.68 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001819/0.01144, allocations: 192.3 kB / 277 MB, free: 13.46 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.623e-06/0.01144, allocations: 0 / 277 MB, free: 13.46 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004893/0.01193, allocations: 186.4 kB / 277.1 MB, free: 13.27 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.691e-05/0.01198, allocations: 102.8 kB / 277.2 MB, free: 13.14 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001552/0.01214, allocations: 228.9 kB / 277.5 MB, free: 12.91 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.762e-05/0.01215, allocations: 33.64 kB / 277.5 MB, free: 12.87 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.347e-05/0.01225, allocations: 204.2 kB / 277.7 MB, free: 12.66 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.012e-05/0.0123, allocations: 75.41 kB / 277.8 MB, free: 12.59 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.022e-05/0.01238, allocations: 61.95 kB / 277.8 MB, free: 12.52 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.877e-05/0.01247, allocations: 338.8 kB / 278.2 MB, free: 12.18 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.085e-05/0.01252, allocations: 32.64 kB / 278.2 MB, free: 12.15 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001225/0.01264, allocations: 184.9 kB / 278.4 MB, free: 11.91 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000167/0.01281, allocations: 171.4 kB / 278.5 MB, free: 11.71 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.01281, allocations: 0 / 278.5 MB, free: 11.71 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003295/0.01314, allocations: 216.5 kB / 278.8 MB, free: 11.49 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.01316, allocations: 8.344 kB / 278.8 MB, free: 11.48 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.01317, allocations: 8 kB / 278.8 MB, free: 11.48 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001558/0.01332, allocations: 40.81 kB / 278.8 MB, free: 11.43 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002351/0.01356, allocations: 71.84 kB / 278.9 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009279/0.01448, allocations: 1.32 MB / 280.2 MB, free: 9.953 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001611/0.01465, allocations: 31.84 kB / 280.2 MB, free: 9.922 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.223e-05/0.01467, allocations: 15.98 kB / 280.2 MB, free: 9.906 MB / 266.7 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.0001127/0.01478, allocations: 132.7 kB / 280.4 MB, free: 9.77 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.384e-05/0.01481, allocations: 27.92 kB / 280.4 MB, free: 9.742 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.847e-05/0.01485, allocations: 34.27 kB / 280.4 MB, free: 9.707 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.01486, allocations: 7.984 kB / 280.4 MB, free: 9.699 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.01486, allocations: 0 / 280.4 MB, free: 9.699 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.01486, allocations: 0 / 280.4 MB, free: 9.699 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001877/0.01505, allocations: 161.7 kB / 280.6 MB, free: 9.523 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.01505, allocations: 0 / 280.6 MB, free: 9.523 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001799/0.01523, allocations: 59.03 kB / 280.7 MB, free: 9.469 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001165/0.01535, allocations: 36.83 kB / 280.7 MB, free: 9.43 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.473e-05/0.01536, allocations: 4 kB / 280.7 MB, free: 9.426 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007081/0.01607, allocations: 1.17 MB / 281.9 MB, free: 8.168 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.01607, allocations: 3.984 kB / 281.9 MB, free: 8.164 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002743/0.01635, allocations: 205.9 kB / 282.1 MB, free: 7.941 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.673e-05/0.01641, allocations: 23.8 kB / 282.1 MB, free: 7.918 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.657e-05/0.01643, allocations: 7.984 kB / 282.1 MB, free: 7.91 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.147e-05/0.01651, allocations: 12 kB / 282.1 MB, free: 7.898 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.304e-05/0.01658, allocations: 31.88 kB / 282.1 MB, free: 7.867 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.196e-05/0.01659, allocations: 8 kB / 282.2 MB, free: 7.859 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.534e-05/0.01665, allocations: 74.77 kB / 282.2 MB, free: 7.785 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01665, allocations: 4.031 kB / 282.2 MB, free: 7.781 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003213/0.01698, allocations: 95.78 kB / 282.3 MB, free: 7.688 MB / 266.7 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.0001055/0.01708, allocations: 76.42 kB / 282.4 MB, free: 7.605 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003094/0.01739, allocations: 242.9 kB / 282.6 MB, free: 7.352 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.002e-06/0.0174, allocations: 4 kB / 282.6 MB, free: 7.348 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001454/0.01754, allocations: 179.4 kB / 282.8 MB, free: 7.16 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001505/0.01769, allocations: 32.42 kB / 282.8 MB, free: 7.125 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001193/0.01889, allocations: 0.6023 MB / 283.4 MB, free: 6.496 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.05e-05/0.01895, allocations: 96.23 kB / 283.5 MB, free: 6.383 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.826e-05/0.01904, allocations: 22.3 kB / 283.6 MB, free: 6.359 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001315/0.01918, allocations: 95.34 kB / 283.7 MB, free: 6.266 MB / 266.7 MB Notification: Performance of SimCode: time 8.82e-07/0.01918, allocations: 0 / 283.7 MB, free: 6.266 MB / 266.7 MB Notification: Performance of Templates: time 0.007532/0.02671, allocations: 3.199 MB / 286.9 MB, free: 3.109 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7273504701443017]