Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineVoltage.phi|inductor1.i|inductor2.i|sineVoltage.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance") translateModel(Modelica.Electrical.Analog.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineVoltage.phi|inductor1.i|inductor2.i|sineVoltage.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009216/0.0009216, allocations: 94.75 kB / 16.3 MB, free: 5.996 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.0009835/0.0009836, allocations: 184 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.489/1.489, allocations: 223.2 MB / 241.1 MB, free: 5.375 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003138/0.0003139, allocations: 6.906 kB / 300.7 MB, free: 6.113 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1419/0.1422, allocations: 50.42 MB / 351.1 MB, free: 11.7 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.003712/0.146, allocations: 2.335 MB / 353.5 MB, free: 9.355 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001539/0.1476, allocations: 0.6588 MB / 354.1 MB, free: 8.691 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005105/0.1481, allocations: 8 kB / 354.1 MB, free: 8.684 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001968/0.1483, allocations: 35.69 kB / 354.2 MB, free: 8.648 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005771/0.1489, allocations: 103.7 kB / 354.3 MB, free: 8.547 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004389/0.1494, allocations: 71.88 kB / 354.3 MB, free: 8.477 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006772/0.1501, allocations: 251.5 kB / 354.6 MB, free: 8.23 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000347/0.1504, allocations: 115.8 kB / 354.7 MB, free: 8.105 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003796/0.1508, allocations: 123.5 kB / 354.8 MB, free: 7.984 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003122/0.1511, allocations: 127.4 kB / 354.9 MB, free: 7.859 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.179e-05/0.1512, allocations: 16 kB / 355 MB, free: 7.844 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.849e-05/0.1513, allocations: 20 kB / 355 MB, free: 7.824 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.787e-05/0.1514, allocations: 55.77 kB / 355 MB, free: 7.77 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001271/0.1516, allocations: 81.58 kB / 355.1 MB, free: 7.684 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003765/0.1519, allocations: 271.2 kB / 355.4 MB, free: 7.418 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.1519, allocations: 0 / 355.4 MB, free: 7.418 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.152, allocations: 0 / 355.4 MB, free: 7.418 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.894e-05/0.152, allocations: 0 / 355.4 MB, free: 7.418 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001146/0.1531, allocations: 0.5613 MB / 355.9 MB, free: 6.805 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/0.1532, allocations: 8.031 kB / 356 MB, free: 6.797 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001182/0.1533, allocations: 39.58 kB / 356 MB, free: 6.758 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003675/0.1537, allocations: 262.4 kB / 356.2 MB, free: 6.461 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.21e-05/0.1537, allocations: 32.53 kB / 356.3 MB, free: 6.43 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.253e-05/0.1538, allocations: 32 kB / 356.3 MB, free: 6.398 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000581/0.1544, allocations: 274.1 kB / 356.6 MB, free: 6.129 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.1544, allocations: 0 / 356.6 MB, free: 6.129 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.537e-05/0.1545, allocations: 16 kB / 356.6 MB, free: 6.113 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.183e-05/0.1545, allocations: 8 kB / 356.6 MB, free: 6.105 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004706/0.1549, allocations: 214.5 kB / 356.8 MB, free: 5.895 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001736/0.1567, allocations: 0.9869 MB / 357.8 MB, free: 4.836 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003497/0.1571, allocations: 158.5 kB / 358 MB, free: 4.672 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.416e-05/0.1571, allocations: 4 kB / 358 MB, free: 4.668 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.23e-05/0.1571, allocations: 38.64 kB / 358 MB, free: 4.621 MB / 286.1 MB Notification: Performance of pre-optimization done (n=17): time 2.134e-06/0.1572, allocations: 0 / 358 MB, free: 4.621 MB / 286.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006476/0.1578, allocations: 231.7 kB / 358.2 MB, free: 4.391 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.77e-05/0.1579, allocations: 55.41 kB / 358.3 MB, free: 4.324 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002231/0.1581, allocations: 203 kB / 358.5 MB, free: 4.117 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.639e-05/0.1581, allocations: 37.7 kB / 358.5 MB, free: 4.074 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000138/0.1583, allocations: 192 kB / 358.7 MB, free: 3.883 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.444e-05/0.1583, allocations: 67 kB / 358.8 MB, free: 3.816 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.031e-05/0.1584, allocations: 4 kB / 358.8 MB, free: 3.812 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.1585, allocations: 334.8 kB / 359.1 MB, free: 3.477 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001671/0.1587, allocations: 67.97 kB / 359.2 MB, free: 3.41 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001828/0.1589, allocations: 122 kB / 359.3 MB, free: 3.27 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001902/0.1591, allocations: 83.92 kB / 359.4 MB, free: 3.188 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.319e-06/0.1591, allocations: 0 / 359.4 MB, free: 3.188 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004655/0.1595, allocations: 253.2 kB / 359.6 MB, free: 2.934 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.1596, allocations: 8 kB / 359.6 MB, free: 2.926 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.1596, allocations: 0 / 359.6 MB, free: 2.926 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.1596, allocations: 4 kB / 359.6 MB, free: 2.922 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002799/0.1599, allocations: 63.91 kB / 359.7 MB, free: 2.859 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.079e-05/0.1599, allocations: 0 / 359.7 MB, free: 2.859 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001678/0.1601, allocations: 31.73 kB / 359.7 MB, free: 2.828 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.039e-05/0.1601, allocations: 12.09 kB / 359.7 MB, free: 2.816 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001487/0.1603, allocations: 145.7 kB / 359.9 MB, free: 2.664 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.444e-05/0.1603, allocations: 15.81 kB / 359.9 MB, free: 2.648 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004367/0.1608, allocations: 207.3 kB / 360.1 MB, free: 2.441 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.1608, allocations: 4 kB / 360.1 MB, free: 2.438 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.1608, allocations: 4 kB / 360.1 MB, free: 2.434 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/0.1608, allocations: 3.984 kB / 360.1 MB, free: 2.43 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004027/0.1612, allocations: 317.3 kB / 360.4 MB, free: 2.07 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.1613, allocations: 0 / 360.4 MB, free: 2.07 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002796/0.1615, allocations: 51.97 kB / 360.5 MB, free: 2.02 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.702e-06/0.1616, allocations: 0 / 360.5 MB, free: 2.02 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.445e-05/0.1616, allocations: 4 kB / 360.5 MB, free: 2.016 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.74e-06/0.1616, allocations: 7.984 kB / 360.5 MB, free: 2.008 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.1616, allocations: 4 kB / 360.5 MB, free: 2.004 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006379/0.1623, allocations: 365.8 kB / 360.8 MB, free: 1.633 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.033e-05/0.1623, allocations: 100.8 kB / 360.9 MB, free: 1.516 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.827e-05/0.1624, allocations: 12.06 kB / 360.9 MB, free: 1.504 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000168/0.1626, allocations: 15.98 kB / 361 MB, free: 1.488 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.892e-05/0.1626, allocations: 11.98 kB / 361 MB, free: 1.477 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.367e-05/0.1627, allocations: 7.984 kB / 361 MB, free: 1.469 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001459/0.1628, allocations: 148.6 kB / 361.1 MB, free: 1.324 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1628, allocations: 4 kB / 361.1 MB, free: 1.32 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003674/0.1632, allocations: 75.69 kB / 361.2 MB, free: 1.246 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (sineVoltage.phi,inductor1.i,capacitor1.v,cosineVoltage.phi,inductor2.i,capacitor2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001494/0.1633, allocations: 107.2 kB / 361.3 MB, free: 1.129 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004276/0.1638, allocations: 172.4 kB / 361.5 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.1638, allocations: 0 / 361.5 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001699/0.164, allocations: 83.89 kB / 361.6 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003059/0.1643, allocations: 16 kB / 361.6 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001557/0.1658, allocations: 1.038 MB / 362.6 MB, free: 15.8 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003665/0.1662, allocations: 0.7715 MB / 363.4 MB, free: 15 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001066/0.1663, allocations: 21.94 kB / 363.4 MB, free: 14.98 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.119e-05/0.1664, allocations: 19.44 kB / 363.4 MB, free: 14.96 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1664, allocations: 0 / 363.4 MB, free: 14.96 MB / 302.1 MB Notification: Performance of Templates: time 0.005445/0.1719, allocations: 1.771 MB / 365.2 MB, free: 13.2 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches