Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001841/0.001841, allocations: 95.61 kB / 20.96 MB, free: 3.457 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.001951/0.001951, allocations: 161.3 kB / 24.27 MB, free: 152 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.604/1.604, allocations: 177.1 MB / 204.6 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.853e-06/1.853e-06, allocations: 0 / 272.3 MB, free: 1.82 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.83e-05/3.016e-05, allocations: 2.312 kB / 272.3 MB, free: 1.816 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.005146/0.005176, allocations: 3.118 MB / 275.5 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001779/0.006955, allocations: 0.7983 MB / 276.3 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001582/0.007114, allocations: 11.94 kB / 276.3 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001986/0.007312, allocations: 59.42 kB / 276.3 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002364/0.007549, allocations: 107 kB / 276.4 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004349/0.007984, allocations: 135.5 kB / 276.6 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005254/0.008509, allocations: 426 kB / 277 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002356/0.008745, allocations: 100.3 kB / 277.1 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004/0.009145, allocations: 259.4 kB / 277.3 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002355/0.00938, allocations: 123.7 kB / 277.4 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.703e-05/0.009447, allocations: 36 kB / 277.5 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.826e-05/0.009545, allocations: 40 kB / 277.5 MB, free: 12.6 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.135e-05/0.009637, allocations: 83.66 kB / 277.6 MB, free: 12.52 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001714/0.009808, allocations: 131.7 kB / 277.7 MB, free: 12.39 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005842/0.01039, allocations: 446.5 kB / 278.2 MB, free: 11.95 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.0104, allocations: 0 / 278.2 MB, free: 11.95 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.0104, allocations: 0 / 278.2 MB, free: 11.95 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.662e-06/0.0104, allocations: 0 / 278.2 MB, free: 11.95 MB / 266.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.001219/0.01162, allocations: 0.6983 MB / 278.9 MB, free: 11.22 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.01166, allocations: 8.031 kB / 278.9 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002603/0.01192, allocations: 80.64 kB / 279 MB, free: 11.13 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000438/0.01236, allocations: 237.6 kB / 279.2 MB, free: 10.87 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001613/0.01252, allocations: 136 kB / 279.3 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.391e-05/0.01259, allocations: 28.38 kB / 279.3 MB, free: 10.69 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006912/0.01328, allocations: 410 kB / 279.7 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.419e-05/0.01329, allocations: 192 / 279.7 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.769e-05/0.01333, allocations: 20.12 kB / 279.8 MB, free: 10.23 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.407e-05/0.01334, allocations: 11.98 kB / 279.8 MB, free: 10.22 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004448/0.01379, allocations: 206.5 kB / 280 MB, free: 10.02 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002196/0.01598, allocations: 1.456 MB / 281.4 MB, free: 8.477 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003872/0.01637, allocations: 163.1 kB / 281.6 MB, free: 8.305 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001699/0.01654, allocations: 83.66 kB / 281.7 MB, free: 8.219 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.109e-05/0.01657, allocations: 4 kB / 281.7 MB, free: 8.215 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003709/0.01694, allocations: 227.3 kB / 281.9 MB, free: 7.953 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.252e-06/0.01694, allocations: 0 / 281.9 MB, free: 7.953 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.001087/0.01803, allocations: 316.7 kB / 282.2 MB, free: 7.637 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.579e-05/0.01813, allocations: 114.8 kB / 282.3 MB, free: 7.5 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003762/0.0185, allocations: 336.2 kB / 282.6 MB, free: 7.152 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.032e-05/0.01853, allocations: 29.7 kB / 282.7 MB, free: 7.117 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002072/0.01874, allocations: 266.9 kB / 282.9 MB, free: 6.852 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.349e-05/0.01883, allocations: 79.42 kB / 283 MB, free: 6.773 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001268/0.01896, allocations: 75.62 kB / 283.1 MB, free: 6.691 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003052/0.01927, allocations: 0.5196 MB / 283.6 MB, free: 6.16 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001711/0.01944, allocations: 72.62 kB / 283.7 MB, free: 6.09 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003324/0.01977, allocations: 268.5 kB / 283.9 MB, free: 5.754 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004502/0.02022, allocations: 277.5 kB / 284.2 MB, free: 5.434 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.02022, allocations: 0 / 284.2 MB, free: 5.434 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007164/0.02094, allocations: 343.2 kB / 284.5 MB, free: 5.09 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.16e-05/0.02096, allocations: 8 kB / 284.6 MB, free: 5.082 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/0.02097, allocations: 0 / 284.6 MB, free: 5.082 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002888/0.02126, allocations: 75.84 kB / 284.6 MB, free: 5.004 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002643/0.02152, allocations: 59.91 kB / 284.7 MB, free: 4.945 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001985/0.02351, allocations: 2.047 MB / 286.7 MB, free: 2.777 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002559/0.02376, allocations: 47.8 kB / 286.8 MB, free: 2.73 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.645e-05/0.02379, allocations: 11.94 kB / 286.8 MB, free: 2.719 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.0002179/0.02401, allocations: 196.5 kB / 287 MB, free: 2.516 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.134e-05/0.02408, allocations: 35.81 kB / 287 MB, free: 2.48 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.243e-05/0.02414, allocations: 30.27 kB / 287.1 MB, free: 2.449 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.02415, allocations: 4 kB / 287.1 MB, free: 2.445 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.405e-06/0.02415, allocations: 3.938 kB / 287.1 MB, free: 2.441 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.02415, allocations: 4 kB / 287.1 MB, free: 2.438 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003779/0.02453, allocations: 284.4 kB / 287.3 MB, free: 2.125 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.02453, allocations: 0 / 287.3 MB, free: 2.125 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001935/0.02472, allocations: 39.92 kB / 287.4 MB, free: 2.086 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001737/0.0249, allocations: 47.64 kB / 287.4 MB, free: 2.035 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.934e-05/0.02492, allocations: 4 kB / 287.4 MB, free: 2.031 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001655/0.02657, allocations: 1.83 MB / 289.3 MB, free: 80 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.02657, allocations: 0 / 289.3 MB, free: 80 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007638/0.02734, allocations: 347.8 kB / 289.6 MB, free: 15.71 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001023/0.02744, allocations: 43.92 kB / 289.6 MB, free: 15.67 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.647e-05/0.02748, allocations: 8 kB / 289.7 MB, free: 15.66 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001666/0.02764, allocations: 19.98 kB / 289.7 MB, free: 15.64 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001042/0.02775, allocations: 31.94 kB / 289.7 MB, free: 15.61 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.526e-05/0.02776, allocations: 4 kB / 289.7 MB, free: 15.61 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000229/0.02799, allocations: 221.1 kB / 289.9 MB, free: 15.39 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02799, allocations: 0 / 289.9 MB, free: 15.39 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004065/0.0284, allocations: 91.78 kB / 290 MB, free: 15.3 MB / 282.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.0001595/0.02856, allocations: 107.2 kB / 290.1 MB, free: 15.19 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007549/0.02931, allocations: 388.2 kB / 290.5 MB, free: 14.79 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.02931, allocations: 0 / 290.5 MB, free: 14.79 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003862/0.0297, allocations: 264.5 kB / 290.8 MB, free: 14.51 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002712/0.02997, allocations: 30.89 kB / 290.8 MB, free: 14.48 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001574/0.03155, allocations: 0.6275 MB / 291.4 MB, free: 13.82 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001883/0.03173, allocations: 169 kB / 291.6 MB, free: 13.64 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001056/0.03184, allocations: 26.28 kB / 291.6 MB, free: 13.61 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.394e-05/0.03191, allocations: 20.5 kB / 291.6 MB, free: 13.59 MB / 282.7 MB Notification: Performance of SimCode: time 6.71e-07/0.03191, allocations: 4 kB / 291.6 MB, free: 13.59 MB / 282.7 MB Notification: Performance of Templates: time 0.00848/0.04039, allocations: 2.959 MB / 294.6 MB, free: 10.67 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.75485445803497]