Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.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.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineVoltage.phi|inductor1.i|inductor2.i|sineVoltage.phi",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001696/0.001696, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00195/0.00195, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.536/1.536, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002388/0.002389, allocations: 60.06 kB / 306.9 MB, free: 0.6562 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1479/0.1503, allocations: 50.54 MB / 357.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.005276/0.1557, allocations: 2.906 MB / 360.4 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001553/0.1573, allocations: 0.7205 MB / 361.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001766/0.1575, allocations: 4 kB / 361.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002153/0.1577, allocations: 59.44 kB / 361.2 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001784/0.1579, allocations: 91.17 kB / 361.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002899/0.1582, allocations: 91.83 kB / 361.3 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004185/0.1586, allocations: 366.5 kB / 361.7 MB, free: 9.863 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003059/0.1589, allocations: 157.3 kB / 361.8 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003063/0.1593, allocations: 147.5 kB / 362 MB, free: 9.562 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000203/0.1595, allocations: 155.3 kB / 362.1 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.539e-05/0.1595, allocations: 32 kB / 362.2 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.124e-05/0.1596, allocations: 32 kB / 362.2 MB, free: 9.348 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.536e-05/0.1597, allocations: 75.73 kB / 362.3 MB, free: 9.273 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001689/0.1599, allocations: 171.1 kB / 362.4 MB, free: 9.105 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004343/0.1603, allocations: 382.9 kB / 362.8 MB, free: 8.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.1603, allocations: 0 / 362.8 MB, free: 8.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.1603, allocations: 0 / 362.8 MB, free: 8.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.154e-05/0.1604, allocations: 0 / 362.8 MB, free: 8.73 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001017/0.1614, allocations: 0.6004 MB / 363.4 MB, free: 8.078 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/0.1614, allocations: 12.03 kB / 363.4 MB, free: 8.066 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.168e-05/0.1615, allocations: 44.45 kB / 363.5 MB, free: 8.023 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002881/0.1618, allocations: 259.8 kB / 363.7 MB, free: 7.73 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.353e-05/0.1618, allocations: 21.03 kB / 363.7 MB, free: 7.711 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.792e-05/0.1619, allocations: 32.38 kB / 363.8 MB, free: 7.68 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004955/0.1624, allocations: 278.4 kB / 364.1 MB, free: 7.406 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.507e-05/0.1625, allocations: 3.938 kB / 364.1 MB, free: 7.402 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.25e-05/0.1625, allocations: 11.94 kB / 364.1 MB, free: 7.391 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.787e-06/0.1625, allocations: 8 kB / 364.1 MB, free: 7.383 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004284/0.163, allocations: 210.5 kB / 364.3 MB, free: 7.176 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001491/0.1645, allocations: 0.9829 MB / 365.3 MB, free: 6.117 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003456/0.1648, allocations: 162.6 kB / 365.4 MB, free: 5.949 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001714/0.165, allocations: 76.81 kB / 365.5 MB, free: 5.871 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.349e-05/0.165, allocations: 4 kB / 365.5 MB, free: 5.867 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.884e-05/0.1651, allocations: 34.56 kB / 365.5 MB, free: 5.824 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.633e-06/0.1651, allocations: 0 / 365.5 MB, free: 5.824 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.000566/0.1656, allocations: 216.6 kB / 365.7 MB, free: 5.609 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.591e-05/0.1657, allocations: 55.41 kB / 365.8 MB, free: 5.543 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002076/0.1659, allocations: 210.7 kB / 366 MB, free: 5.328 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.354e-05/0.1659, allocations: 33.7 kB / 366 MB, free: 5.289 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001111/0.1661, allocations: 188 kB / 366.2 MB, free: 5.102 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.981e-05/0.1661, allocations: 67.08 kB / 366.3 MB, free: 5.035 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.536e-05/0.1662, allocations: 49.61 kB / 366.3 MB, free: 4.98 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.1663, allocations: 334.8 kB / 366.7 MB, free: 4.645 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001742/0.1665, allocations: 63.91 kB / 366.7 MB, free: 4.582 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001868/0.1667, allocations: 118 kB / 366.8 MB, free: 4.445 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003336/0.167, allocations: 181.8 kB / 367 MB, free: 4.246 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.1671, allocations: 7.938 kB / 367 MB, free: 4.238 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004448/0.1675, allocations: 237.2 kB / 367.3 MB, free: 4 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/0.1675, allocations: 8 kB / 367.3 MB, free: 3.992 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.196e-05/0.1676, allocations: 3.984 kB / 367.3 MB, free: 3.988 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.1676, allocations: 4 kB / 367.3 MB, free: 3.984 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000276/0.1679, allocations: 63.91 kB / 367.3 MB, free: 3.922 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.408e-06/0.1679, allocations: 4 kB / 367.3 MB, free: 3.918 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001551/0.1681, allocations: 31.67 kB / 367.4 MB, free: 3.887 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.528e-05/0.1681, allocations: 4 kB / 367.4 MB, free: 3.883 MB / 302.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001464/0.1683, allocations: 145.8 kB / 367.5 MB, free: 3.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.074e-05/0.1683, allocations: 19.81 kB / 367.5 MB, free: 3.711 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004171/0.1687, allocations: 187.4 kB / 367.7 MB, free: 3.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.1688, allocations: 7.938 kB / 367.7 MB, free: 3.512 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.1688, allocations: 0 / 367.7 MB, free: 3.512 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.1688, allocations: 0 / 367.7 MB, free: 3.512 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003575/0.1691, allocations: 329.2 kB / 368 MB, free: 3.141 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.1692, allocations: 8.047 kB / 368.1 MB, free: 3.133 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002651/0.1694, allocations: 51.95 kB / 368.1 MB, free: 3.082 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.35e-06/0.1694, allocations: 4 kB / 368.1 MB, free: 3.078 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.774e-05/0.1695, allocations: 7.938 kB / 368.1 MB, free: 3.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.1695, allocations: 0 / 368.1 MB, free: 3.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1695, allocations: 0 / 368.1 MB, free: 3.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006202/0.1701, allocations: 354.5 kB / 368.5 MB, free: 2.711 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.693e-05/0.1702, allocations: 101 kB / 368.6 MB, free: 2.594 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.086e-05/0.1702, allocations: 0 / 368.6 MB, free: 2.594 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001678/0.1704, allocations: 15.98 kB / 368.6 MB, free: 2.578 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.58e-05/0.1705, allocations: 11.98 kB / 368.6 MB, free: 2.566 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.205e-05/0.1705, allocations: 8 kB / 368.6 MB, free: 2.559 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001308/0.1706, allocations: 144.6 kB / 368.7 MB, free: 2.418 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1706, allocations: 4 kB / 368.7 MB, free: 2.414 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003454/0.171, allocations: 79.69 kB / 368.8 MB, free: 2.336 MB / 302.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001417/0.1711, allocations: 103.2 kB / 368.9 MB, free: 2.227 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000437/0.1716, allocations: 167.8 kB / 369.1 MB, free: 2.062 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.1716, allocations: 0 / 369.1 MB, free: 2.062 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001622/0.1718, allocations: 80.14 kB / 369.2 MB, free: 1.984 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004857/0.1723, allocations: 30.3 kB / 369.2 MB, free: 1.957 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001528/0.1738, allocations: 0.8188 MB / 370 MB, free: 1.109 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003842/0.1742, allocations: 0.7673 MB / 370.8 MB, free: 320 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.521e-05/0.1743, allocations: 21.95 kB / 370.8 MB, free: 300 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.084e-05/0.1744, allocations: 23.42 kB / 370.8 MB, free: 276 kB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1744, allocations: 0 / 370.8 MB, free: 276 kB / 302.1 MB Notification: Performance of Templates: time 0.2229/0.3973, allocations: 2.001 MB / 372.8 MB, free: 19.45 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches