Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008382/0.0008382, allocations: 95.59 kB / 17.3 MB, free: 6.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008203/0.0008203, allocations: 179.6 kB / 18.21 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.483/1.483, allocations: 205.4 MB / 224.4 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0007384/0.0007385, allocations: 8 kB / 281.4 MB, free: 3.438 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.1283, allocations: 47.59 MB / 329 MB, free: 3.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004596/0.133, allocations: 2.495 MB / 331.5 MB, free: 1.258 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002336/0.1354, allocations: 0.7488 MB / 332.2 MB, free: 0.5 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004435/0.1358, allocations: 4 kB / 332.2 MB, free: 0.4961 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003001/0.1362, allocations: 39.69 kB / 332.2 MB, free: 468 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005278/0.1367, allocations: 79.38 kB / 332.3 MB, free: 388 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005503/0.1373, allocations: 95.78 kB / 332.4 MB, free: 292 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000701/0.138, allocations: 362.5 kB / 332.8 MB, free: 15.93 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003265/0.1384, allocations: 91.94 kB / 332.9 MB, free: 15.83 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002651/0.1386, allocations: 119.5 kB / 333 MB, free: 15.72 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003588/0.139, allocations: 135.3 kB / 333.1 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.681e-05/0.1391, allocations: 16 kB / 333.1 MB, free: 15.57 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.578e-05/0.1392, allocations: 16 kB / 333.1 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001054/0.1394, allocations: 59.69 kB / 333.2 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003217/0.1397, allocations: 173 kB / 333.4 MB, free: 15.32 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005469/0.1403, allocations: 334.9 kB / 333.7 MB, free: 14.99 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.1403, allocations: 0 / 333.7 MB, free: 14.99 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.1403, allocations: 4 kB / 333.7 MB, free: 14.99 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.968e-05/0.1403, allocations: 4 kB / 333.7 MB, free: 14.98 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.00154/0.1419, allocations: 0.5589 MB / 334.3 MB, free: 14.38 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.765e-05/0.1419, allocations: 11.97 kB / 334.3 MB, free: 14.36 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001381/0.1421, allocations: 36.56 kB / 334.3 MB, free: 14.33 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004695/0.1426, allocations: 268.3 kB / 334.6 MB, free: 14.03 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001133/0.1427, allocations: 76.62 kB / 334.6 MB, free: 13.94 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.889e-05/0.1428, allocations: 32.36 kB / 334.7 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007862/0.1436, allocations: 297.9 kB / 335 MB, free: 13.61 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.1436, allocations: 0 / 335 MB, free: 13.61 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.802e-05/0.1437, allocations: 12 kB / 335 MB, free: 13.59 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.52e-05/0.1437, allocations: 11.98 kB / 335 MB, free: 13.58 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005823/0.1443, allocations: 194.1 kB / 335.2 MB, free: 13.39 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002654/0.147, allocations: 1.139 MB / 336.3 MB, free: 12.17 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005003/0.1475, allocations: 154.5 kB / 336.5 MB, free: 12.01 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002255/0.1477, allocations: 80.88 kB / 336.5 MB, free: 11.93 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.14e-05/0.1478, allocations: 0 / 336.5 MB, free: 11.93 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004547/0.1482, allocations: 173.7 kB / 336.7 MB, free: 11.73 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 2.034e-06/0.1483, allocations: 0 / 336.7 MB, free: 11.73 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001655/0.1499, allocations: 395.2 kB / 337.1 MB, free: 11.32 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001048/0.15, allocations: 106.8 kB / 337.2 MB, free: 11.19 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003504/0.1504, allocations: 221 kB / 337.4 MB, free: 10.96 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.186e-05/0.1505, allocations: 33.7 kB / 337.5 MB, free: 10.93 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001688/0.1506, allocations: 180.2 kB / 337.6 MB, free: 10.75 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.256e-05/0.1507, allocations: 63.11 kB / 337.7 MB, free: 10.68 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.144e-05/0.1508, allocations: 33.7 kB / 337.7 MB, free: 10.64 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.151, allocations: 334.8 kB / 338.1 MB, free: 10.31 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002157/0.1512, allocations: 67.97 kB / 338.1 MB, free: 10.24 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002802/0.1515, allocations: 144.6 kB / 338.3 MB, free: 10.07 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004351/0.152, allocations: 192.2 kB / 338.5 MB, free: 9.859 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.152, allocations: 4 kB / 338.5 MB, free: 9.855 MB / 286.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000736/0.1527, allocations: 263.7 kB / 338.7 MB, free: 9.59 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.631e-05/0.1528, allocations: 8 kB / 338.7 MB, free: 9.582 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.1528, allocations: 0 / 338.7 MB, free: 9.582 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003826/0.1532, allocations: 64.97 kB / 338.8 MB, free: 9.516 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003318/0.1535, allocations: 51.91 kB / 338.8 MB, free: 9.465 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001891/0.1554, allocations: 1.42 MB / 340.3 MB, free: 7.914 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003592/0.1558, allocations: 43.77 kB / 340.3 MB, free: 7.871 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.426e-05/0.1559, allocations: 12 kB / 340.3 MB, free: 7.859 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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.0002093/0.1561, allocations: 145.8 kB / 340.5 MB, free: 7.707 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.31e-05/0.1562, allocations: 27.66 kB / 340.5 MB, free: 7.68 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.336e-05/0.1562, allocations: 30.17 kB / 340.5 MB, free: 7.652 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.142e-06/0.1563, allocations: 4 kB / 340.5 MB, free: 7.648 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.1563, allocations: 0 / 340.5 MB, free: 7.648 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.1563, allocations: 3.938 kB / 340.5 MB, free: 7.645 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004647/0.1568, allocations: 313.5 kB / 340.8 MB, free: 7.289 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.1568, allocations: 4 kB / 340.8 MB, free: 7.285 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002541/0.157, allocations: 35.92 kB / 340.9 MB, free: 7.25 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002748/0.1573, allocations: 56.81 kB / 340.9 MB, free: 7.191 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.109e-05/0.1574, allocations: 0 / 340.9 MB, free: 7.191 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001577/0.159, allocations: 1.331 MB / 342.2 MB, free: 5.723 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.159, allocations: 3.938 kB / 342.3 MB, free: 5.719 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000961/0.1599, allocations: 330.1 kB / 342.6 MB, free: 5.375 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001579/0.1601, allocations: 116.8 kB / 342.7 MB, free: 5.242 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.338e-05/0.1602, allocations: 4.125 kB / 342.7 MB, free: 5.238 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002608/0.1605, allocations: 23.98 kB / 342.7 MB, free: 5.215 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001202/0.1606, allocations: 31.95 kB / 342.7 MB, free: 5.184 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.492e-05/0.1606, allocations: 11.92 kB / 342.8 MB, free: 5.172 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002177/0.1609, allocations: 160.5 kB / 342.9 MB, free: 5.016 MB / 286.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.1609, allocations: 0 / 342.9 MB, free: 5.016 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006042/0.1615, allocations: 79.84 kB / 343 MB, free: 4.938 MB / 286.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: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,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): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001638/0.1617, allocations: 115.2 kB / 343.1 MB, free: 4.816 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000754/0.1624, allocations: 282.5 kB / 343.4 MB, free: 4.527 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.1624, allocations: 0 / 343.4 MB, free: 4.527 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004055/0.1629, allocations: 194.5 kB / 343.6 MB, free: 4.324 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004883/0.1634, allocations: 40.78 kB / 343.6 MB, free: 4.285 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002405/0.1658, allocations: 0.8398 MB / 344.5 MB, free: 3.422 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004452/0.1662, allocations: 0.7521 MB / 345.2 MB, free: 2.645 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001766/0.1664, allocations: 26.28 kB / 345.2 MB, free: 2.617 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.767e-05/0.1665, allocations: 19.44 kB / 345.2 MB, free: 2.598 MB / 286.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1665, allocations: 0 / 345.2 MB, free: 2.598 MB / 286.1 MB Notification: Performance of Templates: time 0.01005/0.1766, allocations: 2.755 MB / 348 MB, free: 15.85 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches