Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.0009245/0.0009245, allocations: 76.81 kB / 22.28 MB, free: 2.211 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.000887/0.000887, allocations: 167.5 kB / 25.7 MB, free: 8.43 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.8056/0.8056, allocations: 158.6 MB / 187.6 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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.422e-06/1.422e-06, allocations: 0 / 251.5 MB, free: 7.262 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.09e-05/1.232e-05, allocations: 2.312 kB / 251.5 MB, free: 7.258 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.002681/0.002693, allocations: 3.054 MB / 254.6 MB, free: 4.184 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001063/0.003756, allocations: 0.799 MB / 255.4 MB, free: 3.375 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001173/0.003874, allocations: 7.938 kB / 255.4 MB, free: 3.367 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001375/0.004011, allocations: 63.42 kB / 255.5 MB, free: 3.305 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001467/0.004158, allocations: 107 kB / 255.6 MB, free: 3.199 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002683/0.004426, allocations: 123.6 kB / 255.7 MB, free: 3.078 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002969/0.004723, allocations: 429.8 kB / 256.1 MB, free: 2.656 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001469/0.00487, allocations: 98.98 kB / 256.2 MB, free: 2.555 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002168/0.005087, allocations: 243.5 kB / 256.4 MB, free: 2.316 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001482/0.005235, allocations: 127.6 kB / 256.6 MB, free: 2.191 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.119e-05/0.005276, allocations: 36 kB / 256.6 MB, free: 2.156 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.464e-05/0.005311, allocations: 32 kB / 256.6 MB, free: 2.125 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.58e-05/0.005367, allocations: 87.66 kB / 256.7 MB, free: 2.039 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 8.89e-05/0.005455, allocations: 127.8 kB / 256.8 MB, free: 1.914 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002377/0.005693, allocations: 290.8 kB / 257.1 MB, free: 1.629 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.713e-06/0.005695, allocations: 0 / 257.1 MB, free: 1.629 MB / 234.7 MB Notification: Performance of FrontEnd: time 3.81e-07/0.005695, allocations: 0 / 257.1 MB, free: 1.629 MB / 234.7 MB Notification: Performance of Transformations before backend: time 3.887e-06/0.005699, allocations: 0 / 257.1 MB, free: 1.629 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.0005534/0.006252, allocations: 0.5544 MB / 257.7 MB, free: 1.047 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.911e-05/0.006282, allocations: 15.98 kB / 257.7 MB, free: 1.031 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.138e-05/0.006343, allocations: 56.89 kB / 257.7 MB, free: 0.9766 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001908/0.006534, allocations: 186.2 kB / 257.9 MB, free: 0.7656 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.11e-05/0.006625, allocations: 132 kB / 258.1 MB, free: 0.6133 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.549e-05/0.00666, allocations: 28.38 kB / 258.1 MB, free: 0.5859 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002737/0.006934, allocations: 331.3 kB / 258.4 MB, free: 232 kB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.006945, allocations: 4.172 kB / 258.4 MB, free: 228 kB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.232e-05/0.006967, allocations: 20.12 kB / 258.4 MB, free: 208 kB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/0.006974, allocations: 8 kB / 258.4 MB, free: 200 kB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002499/0.007224, allocations: 88.48 kB / 258.5 MB, free: 116 kB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009191/0.008143, allocations: 1.052 MB / 259.6 MB, free: 14.99 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001411/0.008284, allocations: 113.3 kB / 259.7 MB, free: 14.87 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.396e-05/0.008328, allocations: 40.84 kB / 259.7 MB, free: 14.83 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.377e-05/0.008342, allocations: 4 kB / 259.7 MB, free: 14.82 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001285/0.00847, allocations: 177.2 kB / 259.9 MB, free: 14.62 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 1.183e-06/0.008472, allocations: 0 / 259.9 MB, free: 14.62 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003816/0.008853, allocations: 194.2 kB / 260.1 MB, free: 14.42 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.859e-05/0.008892, allocations: 106.8 kB / 260.2 MB, free: 14.29 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001153/0.009007, allocations: 225.2 kB / 260.4 MB, free: 14.05 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.458e-05/0.009022, allocations: 33.7 kB / 260.5 MB, free: 14.02 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.29e-05/0.009095, allocations: 200.2 kB / 260.6 MB, free: 13.82 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.553e-05/0.00913, allocations: 71.38 kB / 260.7 MB, free: 13.75 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.983e-05/0.00919, allocations: 69.98 kB / 260.8 MB, free: 13.67 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.159e-05/0.009261, allocations: 334.8 kB / 261.1 MB, free: 13.34 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.679e-05/0.009298, allocations: 32.64 kB / 261.1 MB, free: 13.3 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.448e-05/0.009393, allocations: 192.7 kB / 261.3 MB, free: 13.06 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001287/0.009521, allocations: 175.5 kB / 261.5 MB, free: 12.86 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.175e-06/0.009524, allocations: 0 / 261.5 MB, free: 12.86 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002257/0.009749, allocations: 215.7 kB / 261.7 MB, free: 12.64 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.738e-06/0.009759, allocations: 4.344 kB / 261.7 MB, free: 12.63 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.952e-06/0.009765, allocations: 8 kB / 261.7 MB, free: 12.62 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001174/0.009882, allocations: 36.83 kB / 261.8 MB, free: 12.59 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001293/0.01001, allocations: 63.91 kB / 261.8 MB, free: 12.52 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006594/0.01067, allocations: 1.32 MB / 263.1 MB, free: 11.12 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001059/0.01078, allocations: 43.75 kB / 263.2 MB, free: 11.08 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.467e-05/0.01079, allocations: 12 kB / 263.2 MB, free: 11.07 MB / 250.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 7.858e-05/0.01087, allocations: 129.7 kB / 263.3 MB, free: 10.93 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.628e-05/0.0109, allocations: 35.97 kB / 263.4 MB, free: 10.89 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.402e-05/0.01092, allocations: 30.27 kB / 263.4 MB, free: 10.86 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.01092, allocations: 4 kB / 263.4 MB, free: 10.86 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.313e-06/0.01092, allocations: 0 / 263.4 MB, free: 10.86 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.01093, allocations: 0 / 263.4 MB, free: 10.86 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000116/0.01104, allocations: 157.7 kB / 263.5 MB, free: 10.69 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.01104, allocations: 0 / 263.5 MB, free: 10.69 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.607e-05/0.01113, allocations: 35.97 kB / 263.6 MB, free: 10.65 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.121e-05/0.01121, allocations: 40.77 kB / 263.6 MB, free: 10.61 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.118e-05/0.01122, allocations: 11.94 kB / 263.6 MB, free: 10.6 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004866/0.01171, allocations: 1.162 MB / 264.8 MB, free: 9.348 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.4e-07/0.01171, allocations: 0 / 264.8 MB, free: 9.348 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002146/0.01192, allocations: 201.9 kB / 265 MB, free: 9.129 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.512e-05/0.01197, allocations: 35.69 kB / 265 MB, free: 9.094 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.951e-05/0.01199, allocations: 7.984 kB / 265 MB, free: 9.086 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.923e-05/0.01205, allocations: 12 kB / 265.1 MB, free: 9.074 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.186e-05/0.0121, allocations: 31.94 kB / 265.1 MB, free: 9.043 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.851e-06/0.01211, allocations: 0 / 265.1 MB, free: 9.043 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.735e-05/0.01215, allocations: 74.78 kB / 265.2 MB, free: 8.969 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01215, allocations: 0 / 265.2 MB, free: 8.969 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002041/0.01236, allocations: 91.88 kB / 265.2 MB, free: 8.879 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: 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 7.508e-05/0.01243, allocations: 96.28 kB / 265.3 MB, free: 8.773 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003717/0.0128, allocations: 242.2 kB / 265.6 MB, free: 8.523 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.01281, allocations: 0 / 265.6 MB, free: 8.523 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001138/0.01292, allocations: 177 kB / 265.7 MB, free: 8.336 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000115/0.01304, allocations: 40.42 kB / 265.8 MB, free: 8.297 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008816/0.01392, allocations: 0.5984 MB / 266.4 MB, free: 7.672 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.461e-05/0.01396, allocations: 92.3 kB / 266.5 MB, free: 7.562 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.822e-05/0.01402, allocations: 18.3 kB / 266.5 MB, free: 7.547 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.957e-05/0.01411, allocations: 87.36 kB / 266.6 MB, free: 7.461 MB / 250.7 MB Notification: Performance of SimCode: time 5.91e-07/0.01411, allocations: 0 / 266.6 MB, free: 7.461 MB / 250.7 MB Notification: Performance of Templates: time 0.004648/0.01876, allocations: 3.129 MB / 269.7 MB, free: 4.355 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.504406712949276]