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.001837/0.001837, allocations: 95.86 kB / 20.96 MB, free: 3.465 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.001722/0.001722, allocations: 153.1 kB / 24.27 MB, free: 168 kB / 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.507/1.507, allocations: 173.4 MB / 200.8 MB, free: 9.332 MB / 186.7 MB " [Timeout remaining time 178] 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 2.264e-06/2.264e-06, allocations: 0 / 267.3 MB, free: 6.738 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.574e-05/3.8e-05, allocations: 6.25 kB / 267.3 MB, free: 6.73 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.005153/0.005191, allocations: 3.1 MB / 270.4 MB, free: 3.613 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00153/0.006721, allocations: 0.7321 MB / 271.2 MB, free: 2.875 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001494/0.006871, allocations: 7.938 kB / 271.2 MB, free: 2.867 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001996/0.00707, allocations: 63.42 kB / 271.2 MB, free: 2.805 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002278/0.007298, allocations: 111 kB / 271.3 MB, free: 2.695 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003967/0.007695, allocations: 107.7 kB / 271.4 MB, free: 2.59 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005353/0.00823, allocations: 433.9 kB / 271.9 MB, free: 2.164 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002448/0.008475, allocations: 100.3 kB / 272 MB, free: 2.062 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003665/0.008841, allocations: 239.5 kB / 272.2 MB, free: 1.828 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004026/0.009244, allocations: 143.6 kB / 272.3 MB, free: 1.688 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.96e-05/0.009313, allocations: 32 kB / 272.4 MB, free: 1.656 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.638e-05/0.00939, allocations: 36 kB / 272.4 MB, free: 1.621 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.956e-05/0.009489, allocations: 71.75 kB / 272.5 MB, free: 1.551 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001844/0.009674, allocations: 135.7 kB / 272.6 MB, free: 1.418 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005958/0.01027, allocations: 438.6 kB / 273 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.01028, allocations: 4 kB / 273 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.01028, allocations: 3.938 kB / 273 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.294e-06/0.01029, allocations: 0 / 273 MB, free: 0.9805 MB / 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.001311/0.0116, allocations: 0.6944 MB / 273.7 MB, free: 252 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.01164, allocations: 8.031 kB / 273.7 MB, free: 244 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001588/0.0118, allocations: 72.69 kB / 273.8 MB, free: 172 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004576/0.01226, allocations: 229.7 kB / 274 MB, free: 15.91 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001444/0.0124, allocations: 128 kB / 274.2 MB, free: 15.76 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.579e-05/0.01248, allocations: 36.38 kB / 274.2 MB, free: 15.73 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006702/0.01315, allocations: 410 kB / 274.6 MB, free: 15.29 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.612e-05/0.01316, allocations: 4.172 kB / 274.6 MB, free: 15.29 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.957e-05/0.0132, allocations: 20.12 kB / 274.6 MB, free: 15.27 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.351e-05/0.01322, allocations: 8 kB / 274.6 MB, free: 15.26 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004583/0.01368, allocations: 206.5 kB / 274.8 MB, free: 15.06 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002208/0.01588, allocations: 1.452 MB / 276.3 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003787/0.01626, allocations: 171 kB / 276.5 MB, free: 13.34 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001878/0.01645, allocations: 76 kB / 276.5 MB, free: 13.26 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.905e-05/0.01648, allocations: 4 kB / 276.5 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003594/0.01684, allocations: 238.3 kB / 276.8 MB, free: 12.98 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.353e-06/0.01684, allocations: 0 / 276.8 MB, free: 12.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.00107/0.01791, allocations: 317 kB / 277.1 MB, free: 12.66 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.023e-05/0.018, allocations: 102.8 kB / 277.2 MB, free: 12.54 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003513/0.01835, allocations: 332.2 kB / 277.5 MB, free: 12.2 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.111e-05/0.01838, allocations: 33.7 kB / 277.5 MB, free: 12.16 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002054/0.01859, allocations: 267 kB / 277.8 MB, free: 11.89 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.831e-05/0.01866, allocations: 75.33 kB / 277.9 MB, free: 11.82 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001258/0.01879, allocations: 79.67 kB / 277.9 MB, free: 11.73 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002886/0.01908, allocations: 0.5196 MB / 278.5 MB, free: 11.2 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001693/0.01925, allocations: 72.62 kB / 278.5 MB, free: 11.13 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003541/0.0196, allocations: 268.5 kB / 278.8 MB, free: 10.8 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000435/0.02004, allocations: 273.5 kB / 279.1 MB, free: 10.48 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.199e-06/0.02004, allocations: 4 kB / 279.1 MB, free: 10.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008719/0.02091, allocations: 351.1 kB / 279.4 MB, free: 10.12 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.02093, allocations: 4 kB / 279.4 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/0.02094, allocations: 4 kB / 279.4 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003093/0.02125, allocations: 63.92 kB / 279.5 MB, free: 10.05 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002845/0.02153, allocations: 63.91 kB / 279.5 MB, free: 9.988 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001994/0.02353, allocations: 2.035 MB / 281.6 MB, free: 7.832 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002555/0.02378, allocations: 43.89 kB / 281.6 MB, free: 7.789 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.252e-05/0.02382, allocations: 23.92 kB / 281.6 MB, free: 7.766 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.0002161/0.02403, allocations: 199.4 kB / 281.8 MB, free: 7.562 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.682e-05/0.02409, allocations: 31.86 kB / 281.9 MB, free: 7.531 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.518e-05/0.02415, allocations: 26.27 kB / 281.9 MB, free: 7.504 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.02416, allocations: 4 kB / 281.9 MB, free: 7.5 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.02416, allocations: 4 kB / 281.9 MB, free: 7.496 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.02417, allocations: 0 / 281.9 MB, free: 7.496 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003758/0.02454, allocations: 292.3 kB / 282.2 MB, free: 7.176 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.02454, allocations: 4 kB / 282.2 MB, free: 7.172 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002027/0.02475, allocations: 35.98 kB / 282.2 MB, free: 7.137 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001798/0.02493, allocations: 47.64 kB / 282.3 MB, free: 7.086 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.142e-05/0.02495, allocations: 11.94 kB / 282.3 MB, free: 7.074 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001664/0.02661, allocations: 1.814 MB / 284.1 MB, free: 5.137 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.02661, allocations: 0 / 284.1 MB, free: 5.137 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007583/0.02737, allocations: 354.8 kB / 284.5 MB, free: 4.766 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001054/0.02748, allocations: 47.69 kB / 284.5 MB, free: 4.719 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.669e-05/0.02751, allocations: 4 kB / 284.5 MB, free: 4.715 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001699/0.02768, allocations: 24.14 kB / 284.5 MB, free: 4.691 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001047/0.02779, allocations: 27.94 kB / 284.6 MB, free: 4.664 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.823e-05/0.0278, allocations: 8 kB / 284.6 MB, free: 4.656 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002296/0.02803, allocations: 225.1 kB / 284.8 MB, free: 4.438 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02803, allocations: 0 / 284.8 MB, free: 4.438 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004069/0.02844, allocations: 87.84 kB / 284.9 MB, free: 4.352 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.0001555/0.0286, allocations: 103.2 kB / 285 MB, free: 4.238 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007587/0.02936, allocations: 393.2 kB / 285.4 MB, free: 3.832 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.02936, allocations: 0 / 285.4 MB, free: 3.832 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003821/0.02974, allocations: 261.7 kB / 285.6 MB, free: 3.555 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002806/0.03002, allocations: 36.36 kB / 285.6 MB, free: 3.516 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001559/0.03158, allocations: 0.6359 MB / 286.3 MB, free: 2.852 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003017/0.03188, allocations: 168.8 kB / 286.4 MB, free: 2.664 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001127/0.03199, allocations: 26.28 kB / 286.5 MB, free: 2.641 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.552e-05/0.03206, allocations: 20.5 kB / 286.5 MB, free: 2.621 MB / 266.7 MB Notification: Performance of SimCode: time 8.12e-07/0.03206, allocations: 0 / 286.5 MB, free: 2.621 MB / 266.7 MB Notification: Performance of Templates: time 0.008195/0.04026, allocations: 2.959 MB / 289.4 MB, free: 15.7 MB / 282.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.572763940086588]