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.001138/0.001138, allocations: 80.92 kB / 22.28 MB, free: 2.203 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.001441/0.001441, allocations: 164.5 kB / 25.69 MB, free: 8.797 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 0.8373/0.8373, allocations: 158.6 MB / 187.6 MB, free: 2.785 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.102e-06/1.102e-06, allocations: 0 / 251.5 MB, free: 7.262 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.91e-05/2.02e-05, allocations: 6.25 kB / 251.5 MB, free: 7.254 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.002838/0.002858, allocations: 2.798 MB / 254.3 MB, free: 4.438 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001313/0.00417, allocations: 0.7795 MB / 255.1 MB, free: 3.648 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001442/0.004315, allocations: 11.94 kB / 255.1 MB, free: 3.637 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001386/0.004453, allocations: 43.56 kB / 255.2 MB, free: 3.594 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000165/0.004618, allocations: 95.06 kB / 255.3 MB, free: 3.5 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000294/0.004912, allocations: 107.7 kB / 255.4 MB, free: 3.395 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003106/0.005223, allocations: 390.1 kB / 255.7 MB, free: 3.012 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001438/0.005366, allocations: 86.23 kB / 255.8 MB, free: 2.922 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002098/0.005576, allocations: 215.5 kB / 256 MB, free: 2.711 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000147/0.005723, allocations: 111.7 kB / 256.2 MB, free: 2.602 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.845e-05/0.005762, allocations: 32 kB / 256.2 MB, free: 2.57 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.931e-05/0.005791, allocations: 31.94 kB / 256.2 MB, free: 2.539 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.98e-05/0.005841, allocations: 75.72 kB / 256.3 MB, free: 2.465 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 8.316e-05/0.005924, allocations: 111.8 kB / 256.4 MB, free: 2.355 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002243/0.006148, allocations: 251.1 kB / 256.6 MB, free: 2.109 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.355e-06/0.006151, allocations: 4 kB / 256.6 MB, free: 2.105 MB / 234.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.006152, allocations: 0 / 256.6 MB, free: 2.105 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.188e-06/0.006156, allocations: 4 kB / 256.7 MB, free: 2.102 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.0005732/0.006729, allocations: 0.5014 MB / 257.2 MB, free: 1.574 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.048e-05/0.006759, allocations: 11.98 kB / 257.2 MB, free: 1.562 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.249e-05/0.006822, allocations: 52.89 kB / 257.2 MB, free: 1.512 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001928/0.007015, allocations: 185.2 kB / 257.4 MB, free: 1.305 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.749e-05/0.007092, allocations: 136 kB / 257.5 MB, free: 1.148 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.385e-05/0.007126, allocations: 28.38 kB / 257.6 MB, free: 1.121 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002459/0.007372, allocations: 290.5 kB / 257.8 MB, free: 0.8047 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.007383, allocations: 8.109 kB / 257.8 MB, free: 0.7969 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.77e-05/0.007401, allocations: 16.12 kB / 257.9 MB, free: 0.7812 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.007408, allocations: 8 kB / 257.9 MB, free: 0.7734 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.656e-05/0.007505, allocations: 76.53 kB / 257.9 MB, free: 0.7031 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008373/0.008342, allocations: 0.8216 MB / 258.8 MB, free: 15.83 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001498/0.008492, allocations: 109.4 kB / 258.9 MB, free: 15.72 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.357e-05/0.008536, allocations: 40.84 kB / 258.9 MB, free: 15.68 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.506e-05/0.008551, allocations: 0 / 258.9 MB, free: 15.68 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001419/0.008693, allocations: 185.2 kB / 259.1 MB, free: 15.46 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 1.433e-06/0.008694, allocations: 4 kB / 259.1 MB, free: 15.46 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003879/0.009082, allocations: 182.3 kB / 259.3 MB, free: 15.27 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.445e-05/0.009126, allocations: 118.7 kB / 259.4 MB, free: 15.13 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001053/0.009232, allocations: 191.8 kB / 259.6 MB, free: 14.93 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.728e-05/0.009249, allocations: 33.7 kB / 259.6 MB, free: 14.89 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.33e-05/0.009322, allocations: 176.4 kB / 259.8 MB, free: 14.71 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.923e-05/0.009361, allocations: 71.39 kB / 259.9 MB, free: 14.64 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.825e-05/0.00942, allocations: 69.5 kB / 259.9 MB, free: 14.57 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.17e-05/0.009501, allocations: 334.8 kB / 260.3 MB, free: 14.23 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.304e-05/0.009534, allocations: 23.98 kB / 260.3 MB, free: 14.21 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001004/0.009635, allocations: 159.9 kB / 260.4 MB, free: 14.01 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001105/0.009745, allocations: 140.1 kB / 260.6 MB, free: 13.85 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.009747, allocations: 0 / 260.6 MB, free: 13.85 MB / 250.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0001702/0.009918, allocations: 179.9 kB / 260.7 MB, free: 13.67 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.24e-05/0.00993, allocations: 8.219 kB / 260.8 MB, free: 13.66 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.009935, allocations: 4 kB / 260.8 MB, free: 13.66 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001292/0.01006, allocations: 36.83 kB / 260.8 MB, free: 13.62 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001479/0.01021, allocations: 55.91 kB / 260.8 MB, free: 13.56 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007298/0.01094, allocations: 1.316 MB / 262.2 MB, free: 12.16 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001009/0.01104, allocations: 35.83 kB / 262.2 MB, free: 12.12 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.01e-05/0.01105, allocations: 4 kB / 262.2 MB, free: 12.12 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 8.193e-05/0.01113, allocations: 137.7 kB / 262.3 MB, free: 11.98 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.188e-05/0.01116, allocations: 19.98 kB / 262.4 MB, free: 11.96 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.443e-05/0.01118, allocations: 30.02 kB / 262.4 MB, free: 11.92 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.165e-06/0.01118, allocations: 4 kB / 262.4 MB, free: 11.92 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.01119, allocations: 0 / 262.4 MB, free: 11.92 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.01119, allocations: 0 / 262.4 MB, free: 11.92 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001413/0.01133, allocations: 157.7 kB / 262.5 MB, free: 11.75 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.01133, allocations: 3.938 kB / 262.5 MB, free: 11.74 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.523e-05/0.01142, allocations: 35.92 kB / 262.6 MB, free: 11.71 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.76e-05/0.01151, allocations: 40.81 kB / 262.6 MB, free: 11.66 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.038e-05/0.01152, allocations: 4 kB / 262.6 MB, free: 11.66 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006245/0.01214, allocations: 1.162 MB / 263.8 MB, free: 10.41 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.01214, allocations: 0 / 263.8 MB, free: 10.41 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002183/0.01236, allocations: 205.9 kB / 264 MB, free: 10.19 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.193e-05/0.0124, allocations: 23.83 kB / 264 MB, free: 10.17 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.874e-05/0.01242, allocations: 4 kB / 264 MB, free: 10.16 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.037e-05/0.01248, allocations: 19.92 kB / 264 MB, free: 10.14 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.209e-05/0.01253, allocations: 23.95 kB / 264.1 MB, free: 10.12 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.936e-06/0.01254, allocations: 11.98 kB / 264.1 MB, free: 10.11 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.926e-05/0.01258, allocations: 51.09 kB / 264.1 MB, free: 10.06 MB / 250.7 MB Notification: Performance of sort global known variables: time 3e-08/0.01258, allocations: 0 / 264.1 MB, free: 10.06 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002055/0.01279, allocations: 87.88 kB / 264.2 MB, free: 9.973 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.911e-05/0.01288, allocations: 88.34 kB / 264.3 MB, free: 9.875 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002507/0.01313, allocations: 238.3 kB / 264.5 MB, free: 9.629 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.01313, allocations: 0 / 264.5 MB, free: 9.629 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001226/0.01325, allocations: 164.4 kB / 264.7 MB, free: 9.453 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001374/0.01339, allocations: 52.31 kB / 264.7 MB, free: 9.402 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008697/0.01426, allocations: 0.5551 MB / 265.3 MB, free: 8.824 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.638e-05/0.01431, allocations: 96.16 kB / 265.4 MB, free: 8.711 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.199e-05/0.01437, allocations: 25.92 kB / 265.4 MB, free: 8.688 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.415e-05/0.01446, allocations: 87.36 kB / 265.5 MB, free: 8.602 MB / 250.7 MB Notification: Performance of SimCode: time 7.71e-07/0.01446, allocations: 0 / 265.5 MB, free: 8.602 MB / 250.7 MB Notification: Performance of Templates: time 0.004988/0.01945, allocations: 3.076 MB / 268.6 MB, free: 5.555 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.5469834515824914]