Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001182/0.001182, allocations: 96.09 kB / 16.98 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001487/0.001487, allocations: 197.4 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.552/1.552, allocations: 227.2 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002511/0.0002511, allocations: 4 kB / 306.6 MB, free: 1.426 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.148/0.1483, allocations: 51.49 MB / 358.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.002861/0.1512, allocations: 2.537 MB / 360.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001218/0.1524, allocations: 0.7834 MB / 361.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000128/0.1526, allocations: 4 kB / 361.4 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 7.113e-05/0.1527, allocations: 43.67 kB / 361.4 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002151/0.1529, allocations: 127.6 kB / 361.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003376/0.1532, allocations: 79.84 kB / 361.6 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003556/0.1536, allocations: 287.2 kB / 361.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002173/0.1538, allocations: 107 kB / 362 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002354/0.1541, allocations: 143.5 kB / 362.2 MB, free: 9.809 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002011/0.1543, allocations: 151.4 kB / 362.3 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.904e-05/0.1543, allocations: 16 kB / 362.3 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.567e-05/0.1544, allocations: 24 kB / 362.3 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.232e-05/0.1545, allocations: 59.75 kB / 362.4 MB, free: 9.562 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.303e-05/0.1546, allocations: 89.52 kB / 362.5 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002981/0.1549, allocations: 303.4 kB / 362.8 MB, free: 9.172 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.1549, allocations: 0 / 362.8 MB, free: 9.172 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.1549, allocations: 0 / 362.8 MB, free: 9.172 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.1549, allocations: 0 / 362.8 MB, free: 9.172 MB / 302.1 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.001024/0.1559, allocations: 0.6144 MB / 363.4 MB, free: 8.508 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.156, allocations: 8.031 kB / 363.4 MB, free: 8.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001978/0.1562, allocations: 51.52 kB / 363.5 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003453/0.1565, allocations: 276 kB / 363.7 MB, free: 8.137 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.446e-05/0.1566, allocations: 87.95 kB / 363.8 MB, free: 8.039 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.601e-05/0.1567, allocations: 28 kB / 363.8 MB, free: 8.012 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005726/0.1573, allocations: 334.7 kB / 364.2 MB, free: 7.672 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.1573, allocations: 0 / 364.2 MB, free: 7.672 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.746e-05/0.1574, allocations: 16 kB / 364.2 MB, free: 7.656 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.422e-05/0.1574, allocations: 11.98 kB / 364.2 MB, free: 7.645 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000426/0.1578, allocations: 218.5 kB / 364.4 MB, free: 7.43 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001923/0.1597, allocations: 1.391 MB / 365.8 MB, free: 5.938 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003162/0.1601, allocations: 166.9 kB / 366 MB, free: 5.766 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.293e-05/0.1601, allocations: 3.953 kB / 366 MB, free: 5.762 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002968/0.1604, allocations: 168.6 kB / 366.1 MB, free: 5.578 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.633e-06/0.1604, allocations: 0 / 366.1 MB, free: 5.578 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001108/0.1615, allocations: 418.7 kB / 366.5 MB, free: 5.145 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.517e-05/0.1616, allocations: 106.8 kB / 366.6 MB, free: 5.016 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000236/0.1619, allocations: 262.6 kB / 366.9 MB, free: 4.754 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.15e-05/0.1619, allocations: 25.7 kB / 366.9 MB, free: 4.723 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001228/0.162, allocations: 211.9 kB / 367.1 MB, free: 4.512 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.832e-05/0.1621, allocations: 70.98 kB / 367.2 MB, free: 4.441 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.544e-05/0.1621, allocations: 12 kB / 367.2 MB, free: 4.43 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.1622, allocations: 330.8 kB / 367.5 MB, free: 4.098 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001471/0.1624, allocations: 76.62 kB / 367.6 MB, free: 4.023 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002102/0.1626, allocations: 181.5 kB / 367.8 MB, free: 3.801 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000177/0.1628, allocations: 89.14 kB / 367.9 MB, free: 3.715 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/0.1628, allocations: 4 kB / 367.9 MB, free: 3.711 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006464/0.1634, allocations: 346.3 kB / 368.2 MB, free: 3.367 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.1635, allocations: 11.98 kB / 368.2 MB, free: 3.355 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.1635, allocations: 4 kB / 368.2 MB, free: 3.352 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002751/0.1638, allocations: 57.12 kB / 368.3 MB, free: 3.293 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000264/0.164, allocations: 67.91 kB / 368.4 MB, free: 3.227 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001248/0.1653, allocations: 1.408 MB / 369.8 MB, free: 1.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002525/0.1656, allocations: 59.81 kB / 369.8 MB, free: 1.621 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.175e-05/0.1656, allocations: 12 kB / 369.8 MB, free: 1.609 MB / 302.1 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 ($whenCondition1,switch1.off,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001483/0.1657, allocations: 153.7 kB / 370 MB, free: 1.449 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.469e-05/0.1658, allocations: 27.62 kB / 370 MB, free: 1.422 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.485e-05/0.1658, allocations: 26.17 kB / 370 MB, free: 1.398 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.1658, allocations: 11.94 kB / 370.1 MB, free: 1.387 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/0.1659, allocations: 0 / 370.1 MB, free: 1.387 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.1659, allocations: 0 / 370.1 MB, free: 1.387 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002962/0.1662, allocations: 341.4 kB / 370.4 MB, free: 1.004 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.1662, allocations: 0 / 370.4 MB, free: 1.004 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001827/0.1664, allocations: 39.92 kB / 370.4 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000174/0.1665, allocations: 52.81 kB / 370.5 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.85e-05/0.1666, allocations: 7.984 kB / 370.5 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2212/0.3877, allocations: 1.321 MB / 371.8 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.3878, allocations: 1.453 kB / 371.8 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009451/0.3888, allocations: 360.5 kB / 372.2 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000119/0.3889, allocations: 118.8 kB / 372.3 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.445e-05/0.3889, allocations: 6.547 kB / 372.3 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001998/0.3891, allocations: 22.81 kB / 372.3 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001091/0.3893, allocations: 37.38 kB / 372.3 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.063e-05/0.3893, allocations: 6.516 kB / 372.3 MB, free: 18.88 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002129/0.3895, allocations: 182.3 kB / 372.5 MB, free: 18.8 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.3895, allocations: 0 / 372.5 MB, free: 18.8 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004613/0.39, allocations: 87.22 kB / 372.6 MB, free: 18.8 MB / 302.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.000151/0.3901, allocations: 109.9 kB / 372.7 MB, free: 18.72 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000666/0.3908, allocations: 312.1 kB / 373 MB, free: 18.61 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.3908, allocations: 0.6562 kB / 373 MB, free: 18.61 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003203/0.3912, allocations: 205.2 kB / 373.2 MB, free: 18.5 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002505/0.3914, allocations: 27.73 kB / 373.3 MB, free: 18.5 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001586/0.393, allocations: 0.8399 MB / 374.1 MB, free: 18.08 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002576/0.3933, allocations: 0.7812 MB / 374.9 MB, free: 17.38 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001225/0.3934, allocations: 24.58 kB / 374.9 MB, free: 17.38 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.351e-05/0.3935, allocations: 25.64 kB / 374.9 MB, free: 17.36 MB / 302.1 MB Notification: Performance of SimCode: time 3.8e-07/0.3935, allocations: 0 / 374.9 MB, free: 17.36 MB / 302.1 MB Notification: Performance of Templates: time 0.009216/0.4027, allocations: 2.681 MB / 377.6 MB, free: 17.2 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches