Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.0009783/0.0009783, allocations: 75.91 kB / 21.18 MB, free: 3.395 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.0009497/0.0009497, allocations: 145.5 kB / 24.54 MB, free: 36 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 0.9348/0.9348, allocations: 173.4 MB / 201.1 MB, free: 8.984 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.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.402e-06/1.402e-06, allocations: 0 / 268 MB, free: 6.277 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.426e-05/2.566e-05, allocations: 2.312 kB / 268 MB, free: 6.273 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003054/0.003079, allocations: 2.889 MB / 270.9 MB, free: 3.371 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001067/0.004146, allocations: 0.7088 MB / 271.6 MB, free: 2.656 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001418/0.004288, allocations: 7.938 kB / 271.6 MB, free: 2.648 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001443/0.004433, allocations: 51.56 kB / 271.7 MB, free: 2.598 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001539/0.004587, allocations: 95.06 kB / 271.8 MB, free: 2.504 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003137/0.0049, allocations: 115.6 kB / 271.9 MB, free: 2.391 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003137/0.005214, allocations: 378.2 kB / 272.2 MB, free: 2.02 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001793/0.005393, allocations: 87.66 kB / 272.3 MB, free: 1.93 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001814/0.005575, allocations: 211.5 kB / 272.5 MB, free: 1.723 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001524/0.005727, allocations: 111.7 kB / 272.6 MB, free: 1.613 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.88e-05/0.005766, allocations: 32 kB / 272.7 MB, free: 1.582 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.649e-05/0.005802, allocations: 32 kB / 272.7 MB, free: 1.551 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.463e-05/0.005857, allocations: 79.72 kB / 272.8 MB, free: 1.473 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.118e-05/0.005948, allocations: 111.8 kB / 272.9 MB, free: 1.363 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002673/0.006215, allocations: 255 kB / 273.1 MB, free: 1.113 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.006218, allocations: 0 / 273.1 MB, free: 1.113 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.00622, allocations: 0 / 273.1 MB, free: 1.113 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.006225, allocations: 0 / 273.1 MB, free: 1.113 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0007228/0.006948, allocations: 0.6339 MB / 273.8 MB, free: 456 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.006991, allocations: 8.922 kB / 273.8 MB, free: 448 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.686e-05/0.007078, allocations: 60.7 kB / 273.8 MB, free: 388 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002576/0.007335, allocations: 212.7 kB / 274 MB, free: 144 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001034/0.007439, allocations: 128.1 kB / 274.2 MB, free: 15.99 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.291e-05/0.007482, allocations: 32.33 kB / 274.2 MB, free: 15.96 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003234/0.007805, allocations: 319 kB / 274.5 MB, free: 15.62 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.007815, allocations: 192 / 274.5 MB, free: 15.62 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.413e-05/0.007839, allocations: 20.06 kB / 274.5 MB, free: 15.6 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.938e-06/0.007849, allocations: 8 kB / 274.5 MB, free: 15.59 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001724/0.008021, allocations: 111.8 kB / 274.7 MB, free: 15.48 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001078/0.009099, allocations: 1.099 MB / 275.8 MB, free: 14.31 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000277/0.009376, allocations: 131.1 kB / 275.9 MB, free: 14.17 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.776e-05/0.009454, allocations: 58.75 kB / 275.9 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.396e-05/0.009478, allocations: 4 kB / 275.9 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002081/0.009686, allocations: 202.4 kB / 276.1 MB, free: 13.87 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.152e-06/0.009687, allocations: 4 kB / 276.1 MB, free: 13.87 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.000605/0.01029, allocations: 249.3 kB / 276.4 MB, free: 13.61 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.091e-05/0.01035, allocations: 114.7 kB / 276.5 MB, free: 13.48 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001454/0.0105, allocations: 250.7 kB / 276.7 MB, free: 13.21 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.927e-05/0.01052, allocations: 33.7 kB / 276.8 MB, free: 13.18 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.693e-05/0.01061, allocations: 223.2 kB / 277 MB, free: 12.95 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.325e-05/0.01066, allocations: 79.42 kB / 277.1 MB, free: 12.88 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.992e-05/0.01073, allocations: 67.3 kB / 277.1 MB, free: 12.8 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.01085, allocations: 0.4962 MB / 277.6 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.716e-05/0.01092, allocations: 39.97 kB / 277.7 MB, free: 12.25 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001415/0.01106, allocations: 200.2 kB / 277.9 MB, free: 12 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000171/0.01123, allocations: 174.8 kB / 278 MB, free: 11.8 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.01123, allocations: 0 / 278 MB, free: 11.8 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002796/0.01151, allocations: 243.2 kB / 278.3 MB, free: 11.55 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.01153, allocations: 8 kB / 278.3 MB, free: 11.54 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.01154, allocations: 0 / 278.3 MB, free: 11.54 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002091/0.01175, allocations: 47.86 kB / 278.3 MB, free: 11.49 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001389/0.01189, allocations: 51.92 kB / 278.4 MB, free: 11.44 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001039/0.01292, allocations: 1.981 MB / 280.4 MB, free: 9.336 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001106/0.01304, allocations: 43.95 kB / 280.4 MB, free: 9.293 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.547e-05/0.01305, allocations: 8 kB / 280.4 MB, free: 9.285 MB / 266.7 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.0001052/0.01316, allocations: 172.5 kB / 280.6 MB, free: 9.105 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.805e-05/0.01318, allocations: 27.89 kB / 280.6 MB, free: 9.078 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.724e-05/0.01321, allocations: 21.97 kB / 280.6 MB, free: 9.059 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.01322, allocations: 7.938 kB / 280.6 MB, free: 9.051 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.01322, allocations: 0 / 280.6 MB, free: 9.051 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.01322, allocations: 7.969 kB / 280.6 MB, free: 9.043 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001876/0.01341, allocations: 228.4 kB / 280.9 MB, free: 8.785 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.01342, allocations: 0 / 280.9 MB, free: 8.785 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.845e-05/0.01351, allocations: 35.92 kB / 280.9 MB, free: 8.75 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001074/0.01362, allocations: 39.64 kB / 280.9 MB, free: 8.707 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.475e-05/0.01364, allocations: 8 kB / 281 MB, free: 8.699 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00079/0.01443, allocations: 1.748 MB / 282.7 MB, free: 6.832 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.01443, allocations: 4 kB / 282.7 MB, free: 6.828 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003221/0.01475, allocations: 274.9 kB / 283 MB, free: 6.535 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.362e-05/0.0148, allocations: 31.81 kB / 283 MB, free: 6.504 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.965e-05/0.01482, allocations: 8 kB / 283 MB, free: 6.496 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.415e-05/0.01489, allocations: 20.16 kB / 283 MB, free: 6.477 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.107e-05/0.01497, allocations: 31.94 kB / 283.1 MB, free: 6.445 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.049e-05/0.01498, allocations: 7.984 kB / 283.1 MB, free: 6.438 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.058e-05/0.01507, allocations: 177.4 kB / 283.2 MB, free: 6.266 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01507, allocations: 0 / 283.2 MB, free: 6.266 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002336/0.0153, allocations: 83.84 kB / 283.3 MB, free: 6.184 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: 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.000102/0.01541, allocations: 103.2 kB / 283.4 MB, free: 6.07 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003578/0.01576, allocations: 313 kB / 283.7 MB, free: 5.742 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.01577, allocations: 0 / 283.7 MB, free: 5.742 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001744/0.01594, allocations: 237.7 kB / 284 MB, free: 5.488 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002043/0.01614, allocations: 39.91 kB / 284 MB, free: 5.449 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001096/0.01724, allocations: 0.5848 MB / 284.6 MB, free: 4.832 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.979e-05/0.01729, allocations: 84.31 kB / 284.7 MB, free: 4.73 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.396e-05/0.01735, allocations: 29.92 kB / 284.7 MB, free: 4.699 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.758e-05/0.0174, allocations: 28.44 kB / 284.7 MB, free: 4.672 MB / 266.7 MB Notification: Performance of SimCode: time 8.22e-07/0.0174, allocations: 0 / 284.7 MB, free: 4.672 MB / 266.7 MB Notification: Performance of Templates: time 0.004961/0.02236, allocations: 2.927 MB / 287.7 MB, free: 1.785 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.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.991544754244387]