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.0014/0.0014, allocations: 82.27 kB / 21.42 MB, free: 3.082 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.001115/0.001115, allocations: 154.3 kB / 24.8 MB, free: 8.422 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 1.066/1.066, allocations: 173.4 MB / 201.4 MB, free: 8.82 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.904e-06/1.904e-06, allocations: 0 / 268.4 MB, free: 6.02 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.667e-05/2.857e-05, allocations: 9.625 kB / 268.4 MB, free: 6.012 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004665/0.004694, allocations: 3.096 MB / 271.5 MB, free: 2.902 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001739/0.006433, allocations: 0.732 MB / 272.3 MB, free: 2.164 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002439/0.006677, allocations: 11.88 kB / 272.3 MB, free: 2.152 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000213/0.00689, allocations: 63.42 kB / 272.3 MB, free: 2.09 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002908/0.007181, allocations: 107 kB / 272.4 MB, free: 1.984 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004265/0.007607, allocations: 111.7 kB / 272.5 MB, free: 1.875 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005241/0.008131, allocations: 437.9 kB / 273 MB, free: 1.445 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001993/0.008331, allocations: 92.36 kB / 273.1 MB, free: 1.352 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002948/0.008626, allocations: 247.5 kB / 273.3 MB, free: 1.109 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001548/0.00878, allocations: 123.7 kB / 273.4 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.043e-05/0.008821, allocations: 35.94 kB / 273.5 MB, free: 0.9531 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.789e-05/0.008859, allocations: 36 kB / 273.5 MB, free: 0.918 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.304e-05/0.008912, allocations: 83.72 kB / 273.6 MB, free: 0.8359 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.705e-05/0.009009, allocations: 135.7 kB / 273.7 MB, free: 0.7031 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002714/0.00928, allocations: 282.9 kB / 274 MB, free: 436 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.009283, allocations: 0 / 274 MB, free: 436 kB / 250.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.009284, allocations: 0 / 274 MB, free: 436 kB / 250.7 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.009289, allocations: 0 / 274 MB, free: 436 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.0006987/0.009988, allocations: 0.683 MB / 274.7 MB, free: 15.7 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.01003, allocations: 8.031 kB / 274.7 MB, free: 15.7 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.024e-05/0.01011, allocations: 68.7 kB / 274.7 MB, free: 15.63 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002226/0.01033, allocations: 220.9 kB / 275 MB, free: 15.38 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.851e-05/0.01041, allocations: 132 kB / 275.1 MB, free: 15.23 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.774e-05/0.01045, allocations: 40.36 kB / 275.1 MB, free: 15.19 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003023/0.01075, allocations: 334.6 kB / 275.5 MB, free: 14.83 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.01076, allocations: 192 / 275.5 MB, free: 14.83 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.3e-05/0.01078, allocations: 20.12 kB / 275.5 MB, free: 14.81 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.01079, allocations: 8 kB / 275.5 MB, free: 14.8 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001228/0.01091, allocations: 100.4 kB / 275.6 MB, free: 14.7 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001071/0.01199, allocations: 1.346 MB / 276.9 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001771/0.01216, allocations: 130.9 kB / 277.1 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.858e-05/0.01221, allocations: 43.67 kB / 277.1 MB, free: 13.08 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.479e-05/0.01223, allocations: 8 kB / 277.1 MB, free: 13.07 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001542/0.01238, allocations: 194.3 kB / 277.3 MB, free: 12.84 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.322e-06/0.01238, allocations: 0 / 277.3 MB, free: 12.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004445/0.01283, allocations: 225.4 kB / 277.5 MB, free: 12.61 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.219e-05/0.01287, allocations: 110.8 kB / 277.6 MB, free: 12.48 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001419/0.01301, allocations: 284.1 kB / 277.9 MB, free: 12.19 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.655e-05/0.01303, allocations: 29.7 kB / 277.9 MB, free: 12.15 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.01313, allocations: 266.9 kB / 278.2 MB, free: 11.89 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.773e-05/0.01317, allocations: 67.44 kB / 278.3 MB, free: 11.82 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.681e-05/0.01323, allocations: 71.64 kB / 278.3 MB, free: 11.74 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.01335, allocations: 0.5078 MB / 278.8 MB, free: 11.22 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.918e-05/0.0134, allocations: 32.62 kB / 278.9 MB, free: 11.19 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001545/0.01355, allocations: 228.5 kB / 279.1 MB, free: 10.89 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002073/0.01376, allocations: 197.5 kB / 279.3 MB, free: 10.65 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.01376, allocations: 4 kB / 279.3 MB, free: 10.65 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003197/0.01408, allocations: 267.2 kB / 279.5 MB, free: 10.38 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.0141, allocations: 8 kB / 279.6 MB, free: 10.37 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.0141, allocations: 0 / 279.6 MB, free: 10.37 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001248/0.01423, allocations: 51.92 kB / 279.6 MB, free: 10.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001319/0.01436, allocations: 67.91 kB / 279.7 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009614/0.01532, allocations: 1.958 MB / 281.6 MB, free: 8.18 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000123/0.01544, allocations: 47.89 kB / 281.7 MB, free: 8.133 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.332e-05/0.01546, allocations: 8 kB / 281.7 MB, free: 8.125 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 9.759e-05/0.01555, allocations: 180.4 kB / 281.9 MB, free: 7.938 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.014e-05/0.01558, allocations: 35.86 kB / 281.9 MB, free: 7.902 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.669e-05/0.01561, allocations: 26.27 kB / 281.9 MB, free: 7.875 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.01561, allocations: 3.938 kB / 281.9 MB, free: 7.871 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.584e-06/0.01562, allocations: 4 kB / 281.9 MB, free: 7.867 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.01562, allocations: 0 / 281.9 MB, free: 7.867 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001568/0.01578, allocations: 197 kB / 282.1 MB, free: 7.648 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.01578, allocations: 4 kB / 282.1 MB, free: 7.645 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001036/0.01588, allocations: 35.92 kB / 282.2 MB, free: 7.609 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001092/0.01599, allocations: 39.64 kB / 282.2 MB, free: 7.566 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.222e-05/0.016, allocations: 8 kB / 282.2 MB, free: 7.559 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009079/0.01691, allocations: 1.729 MB / 283.9 MB, free: 5.719 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.01691, allocations: 0 / 283.9 MB, free: 5.719 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002773/0.01719, allocations: 250.8 kB / 284.2 MB, free: 5.449 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.633e-05/0.01725, allocations: 47.72 kB / 284.2 MB, free: 5.402 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.895e-05/0.01726, allocations: 4 kB / 284.2 MB, free: 5.398 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.05e-05/0.01733, allocations: 28.05 kB / 284.3 MB, free: 5.371 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.803e-05/0.01739, allocations: 31.89 kB / 284.3 MB, free: 5.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.468e-06/0.0174, allocations: 7.984 kB / 284.3 MB, free: 5.332 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.529e-05/0.01749, allocations: 189.1 kB / 284.5 MB, free: 5.148 MB / 266.7 MB Notification: Performance of sort global known variables: time 2e-08/0.01749, allocations: 0 / 284.5 MB, free: 5.148 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002603/0.01775, allocations: 91.78 kB / 284.6 MB, free: 5.059 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.0001096/0.01786, allocations: 111.2 kB / 284.7 MB, free: 4.938 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000317/0.01817, allocations: 309 kB / 285 MB, free: 4.613 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.01818, allocations: 0 / 285 MB, free: 4.613 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001423/0.01832, allocations: 233.7 kB / 285.2 MB, free: 4.363 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001858/0.0185, allocations: 30.98 kB / 285.2 MB, free: 4.332 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001075/0.01958, allocations: 0.6123 MB / 285.8 MB, free: 3.691 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.84e-05/0.01963, allocations: 92.25 kB / 285.9 MB, free: 3.582 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.85e-05/0.0197, allocations: 26.28 kB / 286 MB, free: 3.559 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001087/0.01981, allocations: 114.2 kB / 286.1 MB, free: 3.445 MB / 266.7 MB Notification: Performance of SimCode: time 9.72e-07/0.01981, allocations: 4 kB / 286.1 MB, free: 3.441 MB / 266.7 MB Notification: Performance of Templates: time 0.006272/0.02608, allocations: 3.14 MB / 289.2 MB, free: 344 kB / 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 -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.9866999541409314]