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.001002/0.001002, allocations: 79.73 kB / 21.97 MB, free: 2.598 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.001022/0.001022, allocations: 167.8 kB / 25.33 MB, free: 9.215 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.9829/0.9829, allocations: 158.6 MB / 187.2 MB, free: 2.895 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.783e-06/1.783e-06, allocations: 0 / 251.1 MB, free: 7.5 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.524e-05/2.702e-05, allocations: 2.312 kB / 251.1 MB, free: 7.496 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.00384/0.003867, allocations: 3.086 MB / 254.1 MB, free: 4.391 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001271/0.005138, allocations: 0.7758 MB / 254.9 MB, free: 3.605 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001595/0.005298, allocations: 8 kB / 254.9 MB, free: 3.598 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001606/0.005458, allocations: 59.42 kB / 255 MB, free: 3.539 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001689/0.005627, allocations: 110.9 kB / 255.1 MB, free: 3.43 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003525/0.00598, allocations: 107.7 kB / 255.2 MB, free: 3.324 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003779/0.006358, allocations: 441.7 kB / 255.6 MB, free: 2.891 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001926/0.00655, allocations: 92.39 kB / 255.7 MB, free: 2.793 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002833/0.006834, allocations: 243.5 kB / 256 MB, free: 2.555 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001841/0.007018, allocations: 131.6 kB / 256.1 MB, free: 2.426 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.3e-05/0.007071, allocations: 36 kB / 256.1 MB, free: 2.391 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.156e-05/0.007122, allocations: 36 kB / 256.2 MB, free: 2.355 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.804e-05/0.00719, allocations: 83.72 kB / 256.2 MB, free: 2.273 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001244/0.007315, allocations: 135.7 kB / 256.4 MB, free: 2.141 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003144/0.007629, allocations: 283 kB / 256.6 MB, free: 1.863 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.007633, allocations: 0 / 256.6 MB, free: 1.863 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.133e-06/0.007634, allocations: 3.938 kB / 256.6 MB, free: 1.859 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.007641, allocations: 0 / 256.6 MB, free: 1.859 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.0008091/0.008451, allocations: 0.6713 MB / 257.3 MB, free: 1.148 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.008494, allocations: 15.98 kB / 257.3 MB, free: 1.133 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001032/0.008597, allocations: 72.66 kB / 257.4 MB, free: 1.062 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002566/0.008854, allocations: 217 kB / 257.6 MB, free: 0.8203 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.605e-05/0.00895, allocations: 132 kB / 257.7 MB, free: 0.668 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.312e-05/0.008993, allocations: 36.38 kB / 257.8 MB, free: 0.6328 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000391/0.009384, allocations: 350.7 kB / 258.1 MB, free: 260 kB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.009395, allocations: 192 / 258.1 MB, free: 260 kB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.349e-05/0.009418, allocations: 16.12 kB / 258.1 MB, free: 244 kB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.082e-05/0.009429, allocations: 8 kB / 258.1 MB, free: 236 kB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001922/0.009621, allocations: 127.8 kB / 258.3 MB, free: 108 kB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001201/0.01082, allocations: 1.354 MB / 259.6 MB, free: 14.66 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002112/0.01103, allocations: 127.1 kB / 259.8 MB, free: 14.53 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.614e-05/0.01111, allocations: 55.66 kB / 259.8 MB, free: 14.47 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.53e-05/0.01112, allocations: 0 / 259.8 MB, free: 14.47 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001894/0.01131, allocations: 207.3 kB / 260 MB, free: 14.23 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 1.242e-06/0.01132, allocations: 0 / 260 MB, free: 14.23 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005548/0.01187, allocations: 249.3 kB / 260.3 MB, free: 13.97 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.417e-05/0.01192, allocations: 110.8 kB / 260.4 MB, free: 13.84 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001829/0.01211, allocations: 284.2 kB / 260.6 MB, free: 13.54 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.913e-05/0.01213, allocations: 33.7 kB / 260.7 MB, free: 13.5 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001218/0.01225, allocations: 262.9 kB / 260.9 MB, free: 13.24 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.55e-05/0.01229, allocations: 75.41 kB / 261 MB, free: 13.17 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.384e-05/0.01237, allocations: 67.64 kB / 261.1 MB, free: 13.09 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.0125, allocations: 0.5078 MB / 261.6 MB, free: 12.57 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.357e-05/0.01258, allocations: 48.62 kB / 261.6 MB, free: 12.53 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001575/0.01274, allocations: 236.1 kB / 261.9 MB, free: 12.23 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001931/0.01293, allocations: 217.5 kB / 262.1 MB, free: 11.97 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.01293, allocations: 3.938 kB / 262.1 MB, free: 11.96 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003682/0.0133, allocations: 282.6 kB / 262.3 MB, free: 11.68 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/0.01332, allocations: 8 kB / 262.4 MB, free: 11.67 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.01332, allocations: 0 / 262.4 MB, free: 11.67 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00019/0.01351, allocations: 51.75 kB / 262.4 MB, free: 11.62 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000164/0.01368, allocations: 67.91 kB / 262.5 MB, free: 11.55 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001057/0.01473, allocations: 1.969 MB / 264.4 MB, free: 9.465 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001254/0.01486, allocations: 39.77 kB / 264.5 MB, free: 9.426 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.848e-05/0.01488, allocations: 20.12 kB / 264.5 MB, free: 9.406 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 0.0001202/0.015, allocations: 180.4 kB / 264.7 MB, free: 9.219 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.35e-05/0.01503, allocations: 31.86 kB / 264.7 MB, free: 9.188 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.822e-05/0.01506, allocations: 22.28 kB / 264.7 MB, free: 9.164 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.01506, allocations: 4 kB / 264.7 MB, free: 9.16 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.01507, allocations: 0 / 264.7 MB, free: 9.16 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.01507, allocations: 7.969 kB / 264.7 MB, free: 9.152 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000196/0.01527, allocations: 236.4 kB / 265 MB, free: 8.887 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.01527, allocations: 0 / 265 MB, free: 8.887 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001033/0.01537, allocations: 47.91 kB / 265 MB, free: 8.84 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.718e-05/0.01547, allocations: 35.66 kB / 265 MB, free: 8.801 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.466e-05/0.01549, allocations: 7.984 kB / 265.1 MB, free: 8.793 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007882/0.01627, allocations: 1.752 MB / 266.8 MB, free: 6.914 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.01628, allocations: 0 / 266.8 MB, free: 6.914 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003272/0.0166, allocations: 267.7 kB / 267.1 MB, free: 6.625 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.317e-05/0.01666, allocations: 47.7 kB / 267.1 MB, free: 6.578 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.89e-05/0.01667, allocations: 4 kB / 267.1 MB, free: 6.574 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.822e-05/0.01674, allocations: 16.08 kB / 267.1 MB, free: 6.559 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.704e-05/0.01681, allocations: 31.95 kB / 267.2 MB, free: 6.527 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.1e-05/0.01682, allocations: 7.984 kB / 267.2 MB, free: 6.52 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001121/0.01693, allocations: 197.1 kB / 267.4 MB, free: 6.328 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01693, allocations: 0 / 267.4 MB, free: 6.328 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002426/0.01718, allocations: 95.78 kB / 267.5 MB, free: 6.234 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 9.919e-05/0.01728, allocations: 103.2 kB / 267.6 MB, free: 6.125 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004108/0.01769, allocations: 328.7 kB / 267.9 MB, free: 5.785 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.01769, allocations: 0 / 267.9 MB, free: 5.785 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001811/0.01787, allocations: 242.4 kB / 268.1 MB, free: 5.527 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00021/0.01808, allocations: 40.41 kB / 268.2 MB, free: 5.488 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001171/0.01925, allocations: 0.6121 MB / 268.8 MB, free: 4.844 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.26e-05/0.0193, allocations: 88.31 kB / 268.9 MB, free: 4.738 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.777e-05/0.01937, allocations: 30.27 kB / 268.9 MB, free: 4.711 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.084e-05/0.01942, allocations: 20.5 kB / 268.9 MB, free: 4.688 MB / 250.7 MB Notification: Performance of SimCode: time 7.92e-07/0.01942, allocations: 0 / 268.9 MB, free: 4.688 MB / 250.7 MB Notification: Performance of Templates: time 0.005321/0.02474, allocations: 3.066 MB / 272 MB, free: 1.652 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.9485630593262613]