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.001072/0.001072, allocations: 75.75 kB / 21.97 MB, free: 2.605 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.001694/0.001694, allocations: 169.2 kB / 25.33 MB, free: 9.02 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.9376/0.9376, allocations: 158.6 MB / 187.2 MB, free: 2.93 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.242e-06/1.242e-06, allocations: 0 / 251 MB, free: 7.516 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.132e-05/2.256e-05, allocations: 6.25 kB / 251.1 MB, free: 7.508 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.002926/0.002949, allocations: 3.086 MB / 254.1 MB, free: 4.402 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009191/0.003868, allocations: 0.7798 MB / 254.9 MB, free: 3.613 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000119/0.003987, allocations: 11.94 kB / 254.9 MB, free: 3.602 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001485/0.004135, allocations: 55.42 kB / 255 MB, free: 3.547 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001331/0.004268, allocations: 107 kB / 255.1 MB, free: 3.441 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003076/0.004576, allocations: 115.7 kB / 255.2 MB, free: 3.328 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003196/0.004896, allocations: 441.7 kB / 255.6 MB, free: 2.895 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001806/0.005076, allocations: 88.39 kB / 255.7 MB, free: 2.801 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002053/0.005281, allocations: 247.5 kB / 256 MB, free: 2.559 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001859/0.005467, allocations: 131.6 kB / 256.1 MB, free: 2.43 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.572e-05/0.005513, allocations: 36 kB / 256.1 MB, free: 2.395 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.942e-05/0.005553, allocations: 36 kB / 256.2 MB, free: 2.359 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.538e-05/0.005608, allocations: 79.72 kB / 256.2 MB, free: 2.281 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001019/0.00571, allocations: 139.7 kB / 256.4 MB, free: 2.145 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002549/0.005965, allocations: 279 kB / 256.6 MB, free: 1.871 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.514e-06/0.005967, allocations: 3.938 kB / 256.7 MB, free: 1.867 MB / 234.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.005968, allocations: 0 / 256.7 MB, free: 1.867 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.005974, allocations: 0 / 256.7 MB, free: 1.867 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.0007231/0.006697, allocations: 0.6791 MB / 257.3 MB, free: 1.148 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.006737, allocations: 19.92 kB / 257.4 MB, free: 1.129 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.57e-05/0.006823, allocations: 72.66 kB / 257.4 MB, free: 1.059 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002486/0.007072, allocations: 221.7 kB / 257.6 MB, free: 0.8125 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.722e-05/0.007159, allocations: 124 kB / 257.8 MB, free: 0.668 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.722e-05/0.007206, allocations: 40.36 kB / 257.8 MB, free: 0.6289 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003781/0.007584, allocations: 346.8 kB / 258.1 MB, free: 256 kB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.007595, allocations: 4.125 kB / 258.1 MB, free: 252 kB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.644e-05/0.007622, allocations: 20.12 kB / 258.2 MB, free: 232 kB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.989e-06/0.007632, allocations: 8 kB / 258.2 MB, free: 224 kB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000198/0.00783, allocations: 119.8 kB / 258.3 MB, free: 108 kB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001231/0.00906, allocations: 1.346 MB / 259.6 MB, free: 14.67 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002329/0.009293, allocations: 135 kB / 259.8 MB, free: 14.53 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.493e-05/0.009378, allocations: 51.67 kB / 259.8 MB, free: 14.47 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.222e-05/0.0094, allocations: 8 kB / 259.8 MB, free: 14.46 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001973/0.009598, allocations: 195.4 kB / 260 MB, free: 14.23 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 1.783e-06/0.009599, allocations: 0 / 260 MB, free: 14.23 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005669/0.01017, allocations: 257.3 kB / 260.3 MB, free: 13.97 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.58e-05/0.01022, allocations: 106.8 kB / 260.4 MB, free: 13.84 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001792/0.0104, allocations: 288.2 kB / 260.7 MB, free: 13.54 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.958e-05/0.01042, allocations: 29.7 kB / 260.7 MB, free: 13.51 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001186/0.01054, allocations: 266.9 kB / 260.9 MB, free: 13.24 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.469e-05/0.01058, allocations: 67.42 kB / 261 MB, free: 13.18 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.487e-05/0.01066, allocations: 75.62 kB / 261.1 MB, free: 13.09 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.0108, allocations: 0.5039 MB / 261.6 MB, free: 12.58 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.704e-05/0.01088, allocations: 52.62 kB / 261.6 MB, free: 12.53 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001633/0.01104, allocations: 236.4 kB / 261.9 MB, free: 12.23 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002035/0.01125, allocations: 213.5 kB / 262.1 MB, free: 11.97 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.01125, allocations: 0 / 262.1 MB, free: 11.97 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003527/0.0116, allocations: 282.6 kB / 262.4 MB, free: 11.68 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.01162, allocations: 4 kB / 262.4 MB, free: 11.68 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.154e-06/0.01162, allocations: 7.938 kB / 262.4 MB, free: 11.67 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001783/0.0118, allocations: 51.58 kB / 262.4 MB, free: 11.62 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001503/0.01195, allocations: 64.06 kB / 262.5 MB, free: 11.55 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001003/0.01295, allocations: 1.981 MB / 264.5 MB, free: 9.457 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001039/0.01306, allocations: 31.84 kB / 264.5 MB, free: 9.426 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.952e-05/0.01308, allocations: 24.05 kB / 264.5 MB, free: 9.402 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.0001167/0.01319, allocations: 176.5 kB / 264.7 MB, free: 9.219 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.046e-05/0.01322, allocations: 35.86 kB / 264.7 MB, free: 9.184 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.605e-05/0.01325, allocations: 30.27 kB / 264.7 MB, free: 9.152 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.01325, allocations: 0 / 264.7 MB, free: 9.152 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.994e-06/0.01325, allocations: 4 kB / 264.8 MB, free: 9.148 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.147e-06/0.01326, allocations: 0 / 264.8 MB, free: 9.148 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001687/0.01343, allocations: 232.4 kB / 265 MB, free: 8.887 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.01343, allocations: 0 / 265 MB, free: 8.887 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.845e-05/0.01353, allocations: 39.98 kB / 265 MB, free: 8.848 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.062e-05/0.01362, allocations: 43.59 kB / 265.1 MB, free: 8.801 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.506e-05/0.01363, allocations: 7.984 kB / 265.1 MB, free: 8.793 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007317/0.01436, allocations: 1.755 MB / 266.8 MB, free: 6.91 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.01437, allocations: 0 / 266.8 MB, free: 6.91 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003053/0.01467, allocations: 259.8 kB / 267.1 MB, free: 6.629 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.227e-05/0.01472, allocations: 43.7 kB / 267.1 MB, free: 6.586 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.958e-05/0.01474, allocations: 8 kB / 267.1 MB, free: 6.578 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.471e-05/0.01481, allocations: 15.98 kB / 267.1 MB, free: 6.562 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.775e-05/0.01488, allocations: 36.03 kB / 267.2 MB, free: 6.527 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.094e-05/0.01489, allocations: 7.984 kB / 267.2 MB, free: 6.52 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001041/0.01499, allocations: 197.1 kB / 267.4 MB, free: 6.328 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01499, allocations: 0 / 267.4 MB, free: 6.328 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002408/0.01523, allocations: 91.78 kB / 267.5 MB, free: 6.238 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.339e-05/0.01532, allocations: 111.2 kB / 267.6 MB, free: 6.121 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003859/0.01571, allocations: 317 kB / 267.9 MB, free: 5.793 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.272e-06/0.01571, allocations: 8 kB / 267.9 MB, free: 5.785 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001758/0.01589, allocations: 246.3 kB / 268.1 MB, free: 5.523 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001984/0.01609, allocations: 36.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.001373/0.01746, allocations: 0.6118 MB / 268.8 MB, free: 4.844 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.475e-05/0.01751, allocations: 92.3 kB / 268.9 MB, free: 4.734 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.188e-05/0.01758, allocations: 22.3 kB / 268.9 MB, free: 4.715 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.688e-05/0.01762, allocations: 20.5 kB / 268.9 MB, free: 4.691 MB / 250.7 MB Notification: Performance of SimCode: time 6.92e-07/0.01762, allocations: 4 kB / 268.9 MB, free: 4.688 MB / 250.7 MB Notification: Performance of Templates: time 0.005061/0.02268, allocations: 2.94 MB / 271.9 MB, free: 1.777 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.9903758848086]