Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.001388/0.001388, allocations: 85.08 kB / 23 MB, free: 1.5 MB / 18.57 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.001347/0.001347, allocations: 177.6 kB / 26.4 MB, free: 7.758 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.028/1.028, allocations: 158.6 MB / 188.3 MB, free: 2.781 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 252.3 MB, free: 7.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.645e-05/1.79e-05, allocations: 6.25 kB / 252.3 MB, free: 7.23 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.002748/0.002766, allocations: 2.798 MB / 255.1 MB, free: 4.414 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001136/0.003903, allocations: 0.7603 MB / 255.8 MB, free: 3.641 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001226/0.004025, allocations: 11.94 kB / 255.8 MB, free: 3.629 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001371/0.004162, allocations: 43.56 kB / 255.9 MB, free: 3.586 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001492/0.004311, allocations: 95.06 kB / 256 MB, free: 3.492 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003118/0.004623, allocations: 111.6 kB / 256.1 MB, free: 3.383 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.000305/0.004928, allocations: 390.1 kB / 256.5 MB, free: 3 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001547/0.005083, allocations: 79.67 kB / 256.5 MB, free: 2.918 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000171/0.005254, allocations: 215.5 kB / 256.8 MB, free: 2.707 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001504/0.005404, allocations: 115.7 kB / 256.9 MB, free: 2.594 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.879e-05/0.005443, allocations: 32 kB / 256.9 MB, free: 2.562 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.127e-05/0.005474, allocations: 28 kB / 256.9 MB, free: 2.535 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.942e-05/0.005524, allocations: 71.73 kB / 257 MB, free: 2.465 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 8.208e-05/0.005606, allocations: 111.8 kB / 257.1 MB, free: 2.355 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002254/0.005831, allocations: 255.1 kB / 257.4 MB, free: 2.105 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.005833, allocations: 0 / 257.4 MB, free: 2.105 MB / 234.7 MB Notification: Performance of FrontEnd: time 7.71e-07/0.005834, allocations: 0 / 257.4 MB, free: 2.105 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.228e-06/0.005838, allocations: 0 / 257.4 MB, free: 2.105 MB / 234.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.0006919/0.00653, allocations: 0.6377 MB / 258 MB, free: 1.43 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.006569, allocations: 15.98 kB / 258 MB, free: 1.414 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.972e-05/0.006648, allocations: 56.75 kB / 258.1 MB, free: 1.359 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002177/0.006866, allocations: 208 kB / 258.3 MB, free: 1.129 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.43e-05/0.00694, allocations: 128 kB / 258.4 MB, free: 0.9805 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.386e-05/0.006974, allocations: 36.36 kB / 258.4 MB, free: 0.9453 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002457/0.00722, allocations: 291 kB / 258.7 MB, free: 0.6289 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.007231, allocations: 8.172 kB / 258.7 MB, free: 0.6211 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.107e-05/0.007252, allocations: 20.11 kB / 258.7 MB, free: 0.6016 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.00726, allocations: 8 kB / 258.7 MB, free: 0.5938 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001147/0.007374, allocations: 88.52 kB / 258.8 MB, free: 0.5039 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009142/0.008288, allocations: 1.061 MB / 259.9 MB, free: 15.38 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001708/0.008459, allocations: 119.1 kB / 260 MB, free: 15.25 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.006e-05/0.008509, allocations: 43.66 kB / 260.1 MB, free: 15.2 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.49e-05/0.008524, allocations: 4 kB / 260.1 MB, free: 15.2 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001563/0.008681, allocations: 191.7 kB / 260.2 MB, free: 14.97 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 1.373e-06/0.008682, allocations: 3.938 kB / 260.2 MB, free: 14.97 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004588/0.009141, allocations: 244.9 kB / 260.5 MB, free: 14.72 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.332e-05/0.009194, allocations: 110.8 kB / 260.6 MB, free: 14.59 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001389/0.009333, allocations: 242.7 kB / 260.8 MB, free: 14.33 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.372e-05/0.009357, allocations: 29.7 kB / 260.9 MB, free: 14.3 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001151/0.009472, allocations: 239.1 kB / 261.1 MB, free: 14.06 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.675e-05/0.009518, allocations: 75.39 kB / 261.2 MB, free: 13.98 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.548e-05/0.009584, allocations: 63.33 kB / 261.2 MB, free: 13.91 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.009715, allocations: 0.5001 MB / 261.7 MB, free: 13.4 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.085e-05/0.009756, allocations: 27.98 kB / 261.8 MB, free: 13.38 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001058/0.009862, allocations: 196.2 kB / 261.9 MB, free: 13.13 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001316/0.009993, allocations: 158.7 kB / 262.1 MB, free: 12.94 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.009996, allocations: 0 / 262.1 MB, free: 12.94 MB / 250.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002222/0.01022, allocations: 226.6 kB / 262.3 MB, free: 12.71 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.171e-05/0.01023, allocations: 4 kB / 262.3 MB, free: 12.71 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.762e-06/0.01024, allocations: 4 kB / 262.3 MB, free: 12.7 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001552/0.01039, allocations: 43.64 kB / 262.4 MB, free: 12.66 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001207/0.01051, allocations: 52.14 kB / 262.4 MB, free: 12.61 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000942/0.01145, allocations: 1.962 MB / 264.4 MB, free: 10.54 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001131/0.01157, allocations: 31.83 kB / 264.4 MB, free: 10.5 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.272e-05/0.01158, allocations: 8 kB / 264.4 MB, free: 10.5 MB / 250.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.0001011/0.01168, allocations: 184.6 kB / 264.6 MB, free: 10.3 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.625e-05/0.01171, allocations: 19.91 kB / 264.6 MB, free: 10.29 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.721e-05/0.01173, allocations: 25.95 kB / 264.6 MB, free: 10.25 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.796e-06/0.01174, allocations: 8 kB / 264.7 MB, free: 10.25 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.853e-06/0.01174, allocations: 0 / 264.7 MB, free: 10.25 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.01174, allocations: 7.875 kB / 264.7 MB, free: 10.24 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001658/0.01191, allocations: 185 kB / 264.8 MB, free: 10.03 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.01191, allocations: 4 kB / 264.8 MB, free: 10.03 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.495e-05/0.012, allocations: 27.98 kB / 264.9 MB, free: 10 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.924e-05/0.01209, allocations: 43.64 kB / 264.9 MB, free: 9.953 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.099e-05/0.0121, allocations: 8 kB / 264.9 MB, free: 9.945 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007397/0.01284, allocations: 1.729 MB / 266.7 MB, free: 8.105 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.01284, allocations: 0 / 266.7 MB, free: 8.105 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002648/0.0131, allocations: 251.7 kB / 266.9 MB, free: 7.832 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.911e-05/0.01315, allocations: 43.69 kB / 266.9 MB, free: 7.789 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.789e-05/0.01317, allocations: 4 kB / 266.9 MB, free: 7.785 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.081e-05/0.01324, allocations: 19.98 kB / 267 MB, free: 7.766 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.308e-05/0.01329, allocations: 27.94 kB / 267 MB, free: 7.738 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.564e-06/0.0133, allocations: 8.094 kB / 267 MB, free: 7.73 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.486e-05/0.01337, allocations: 169.4 kB / 267.2 MB, free: 7.566 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01337, allocations: 0 / 267.2 MB, free: 7.566 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002229/0.01359, allocations: 83.84 kB / 267.3 MB, free: 7.484 MB / 250.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 8.286e-05/0.01367, allocations: 103.2 kB / 267.4 MB, free: 7.375 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003012/0.01397, allocations: 292.4 kB / 267.6 MB, free: 7.07 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.01397, allocations: 4.375 kB / 267.6 MB, free: 7.066 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001521/0.01413, allocations: 238.4 kB / 267.9 MB, free: 6.812 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001939/0.01432, allocations: 43.94 kB / 267.9 MB, free: 6.77 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00102/0.01534, allocations: 0.5803 MB / 268.5 MB, free: 6.164 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.554e-05/0.01539, allocations: 88.22 kB / 268.6 MB, free: 6.059 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.247e-05/0.01545, allocations: 21.95 kB / 268.6 MB, free: 6.031 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001004/0.01555, allocations: 110.2 kB / 268.7 MB, free: 5.922 MB / 250.7 MB Notification: Performance of SimCode: time 6.91e-07/0.01555, allocations: 0 / 268.7 MB, free: 5.922 MB / 250.7 MB Notification: Performance of Templates: time 0.005256/0.02081, allocations: 3.196 MB / 271.9 MB, free: 2.754 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.9644198631867766]