Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.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.ParallelResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineCurrent.phi|inductor1.i|inductor2.i|sineCurrent.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance") translateModel(Modelica.Electrical.Analog.Examples.ParallelResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineCurrent.phi|inductor1.i|inductor2.i|sineCurrent.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001629/0.001629, allocations: 116.8 kB / 17.33 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002196/0.002196, allocations: 205.8 kB / 18.26 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.517/1.517, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.001339, allocations: 60 kB / 306.4 MB, free: 0.9414 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1485/0.1499, allocations: 50.54 MB / 357 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ParallelResonance): time 0.00443/0.1544, allocations: 2.952 MB / 359.9 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001308/0.1557, allocations: 0.7011 MB / 360.6 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001649/0.1559, allocations: 4 kB / 360.6 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002317/0.1561, allocations: 51.61 kB / 360.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000172/0.1563, allocations: 71.39 kB / 360.8 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003111/0.1566, allocations: 79.92 kB / 360.8 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004519/0.1571, allocations: 378.9 kB / 361.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003633/0.1575, allocations: 164.5 kB / 361.4 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003341/0.1578, allocations: 155.5 kB / 361.5 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002116/0.158, allocations: 159.3 kB / 361.7 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.591e-05/0.1581, allocations: 32 kB / 361.7 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.41e-05/0.1582, allocations: 32 kB / 361.7 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.584e-05/0.1582, allocations: 79.73 kB / 361.8 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001727/0.1584, allocations: 171.1 kB / 362 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004277/0.1589, allocations: 378.9 kB / 362.3 MB, free: 9.008 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.1589, allocations: 0 / 362.3 MB, free: 9.008 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.919e-06/0.1589, allocations: 4 kB / 362.4 MB, free: 9.004 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.588e-06/0.1589, allocations: 0 / 362.4 MB, free: 9.004 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.001045/0.1599, allocations: 0.6186 MB / 363 MB, free: 8.336 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.16, allocations: 8.031 kB / 363 MB, free: 8.328 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.435e-05/0.1601, allocations: 44.47 kB / 363 MB, free: 8.285 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003065/0.1604, allocations: 263.8 kB / 363.3 MB, free: 7.988 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.448e-05/0.1604, allocations: 21.03 kB / 363.3 MB, free: 7.969 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.913e-05/0.1605, allocations: 40.36 kB / 363.3 MB, free: 7.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005342/0.161, allocations: 282.4 kB / 363.6 MB, free: 7.652 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.1611, allocations: 4 kB / 363.6 MB, free: 7.648 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.044e-05/0.1611, allocations: 8 kB / 363.6 MB, free: 7.641 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.055e-05/0.1611, allocations: 8 kB / 363.6 MB, free: 7.633 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004566/0.1616, allocations: 226.4 kB / 363.9 MB, free: 7.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001525/0.1631, allocations: 1.018 MB / 364.9 MB, free: 6.316 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003313/0.1635, allocations: 162.5 kB / 365 MB, free: 6.148 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002764/0.1637, allocations: 128.8 kB / 365.2 MB, free: 6.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.893e-05/0.1638, allocations: 7.938 kB / 365.2 MB, free: 6.012 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.195e-05/0.1638, allocations: 38.55 kB / 365.2 MB, free: 5.965 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 1.363e-06/0.1638, allocations: 3.938 kB / 365.2 MB, free: 5.961 MB / 302.1 MB Notification: Performance of matching and sorting (n=19): time 0.0005894/0.1644, allocations: 221.7 kB / 365.4 MB, free: 5.738 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.91e-05/0.1645, allocations: 55.41 kB / 365.5 MB, free: 5.672 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002116/0.1647, allocations: 223 kB / 365.7 MB, free: 5.445 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.561e-05/0.1647, allocations: 33.69 kB / 365.7 MB, free: 5.406 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001362/0.1649, allocations: 188 kB / 365.9 MB, free: 5.219 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.615e-05/0.1649, allocations: 70.94 kB / 366 MB, free: 5.148 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.625e-05/0.165, allocations: 53.98 kB / 366 MB, free: 5.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.1652, allocations: 334.8 kB / 366.4 MB, free: 4.754 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001636/0.1653, allocations: 64.53 kB / 366.4 MB, free: 4.691 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002206/0.1656, allocations: 143.4 kB / 366.6 MB, free: 4.52 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003895/0.166, allocations: 229.2 kB / 366.8 MB, free: 4.262 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.166, allocations: 0 / 366.8 MB, free: 4.262 MB / 302.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005333/0.1665, allocations: 277.2 kB / 367.1 MB, free: 3.984 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.35e-05/0.1666, allocations: 12.03 kB / 367.1 MB, free: 3.973 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.1666, allocations: 0 / 367.1 MB, free: 3.973 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.203e-05/0.1666, allocations: 7.938 kB / 367.1 MB, free: 3.965 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003277/0.1669, allocations: 67.91 kB / 367.1 MB, free: 3.898 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.598e-05/0.167, allocations: 11.97 kB / 367.2 MB, free: 3.887 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001537/0.1671, allocations: 27.75 kB / 367.2 MB, free: 3.859 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.017e-05/0.1672, allocations: 12 kB / 367.2 MB, free: 3.848 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (33): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001429/0.1673, allocations: 145.7 kB / 367.3 MB, free: 3.695 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.742e-05/0.1674, allocations: 27.69 kB / 367.4 MB, free: 3.668 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004206/0.1678, allocations: 208 kB / 367.6 MB, free: 3.457 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.648e-06/0.1678, allocations: 4 kB / 367.6 MB, free: 3.453 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.1678, allocations: 0 / 367.6 MB, free: 3.453 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.1678, allocations: 0 / 367.6 MB, free: 3.453 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008111/0.1686, allocations: 0.6035 MB / 368.2 MB, free: 2.789 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.1686, allocations: 3.984 kB / 368.2 MB, free: 2.785 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002833/0.1689, allocations: 55.95 kB / 368.2 MB, free: 2.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.409e-06/0.169, allocations: 4 kB / 368.2 MB, free: 2.727 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.942e-05/0.169, allocations: 4 kB / 368.2 MB, free: 2.723 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.169, allocations: 7.938 kB / 368.2 MB, free: 2.715 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.169, allocations: 0 / 368.2 MB, free: 2.715 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005576/0.1696, allocations: 375.5 kB / 368.6 MB, free: 2.324 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.246e-05/0.1696, allocations: 92.91 kB / 368.7 MB, free: 2.215 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.402e-05/0.1697, allocations: 8.062 kB / 368.7 MB, free: 2.207 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001774/0.1699, allocations: 19.98 kB / 368.7 MB, free: 2.188 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.908e-05/0.1699, allocations: 15.92 kB / 368.7 MB, free: 2.172 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.286e-05/0.1699, allocations: 8 kB / 368.8 MB, free: 2.164 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001306/0.1701, allocations: 152.7 kB / 368.9 MB, free: 2.016 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1701, allocations: 0 / 368.9 MB, free: 2.016 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003305/0.1704, allocations: 87.56 kB / 369 MB, free: 1.93 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (sineCurrent.phi,inductor1.i,capacitor1.v,cosineCurrent.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 (21): * Single equations (assignments): 21 * 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.0002133/0.1706, allocations: 107.2 kB / 369.1 MB, free: 1.816 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004215/0.1711, allocations: 179.7 kB / 369.3 MB, free: 1.641 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.1711, allocations: 0 / 369.3 MB, free: 1.641 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001665/0.1713, allocations: 79.84 kB / 369.3 MB, free: 1.562 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004071/0.1717, allocations: 37.41 kB / 369.4 MB, free: 1.527 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001414/0.1731, allocations: 0.961 MB / 370.3 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2115/0.3846, allocations: 0.7627 MB / 371.1 MB, free: 19.7 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001646/0.3848, allocations: 26.86 kB / 371.1 MB, free: 19.7 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.389e-05/0.3849, allocations: 21.44 kB / 371.2 MB, free: 19.69 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3849, allocations: 0.8438 kB / 371.2 MB, free: 19.69 MB / 302.1 MB Notification: Performance of Templates: time 0.007078/0.392, allocations: 1.985 MB / 373.1 MB, free: 19.66 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ParallelResonance/ParallelResonance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches