Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ParallelResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ParallelResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ParallelResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ParallelResonance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001557/0.001557, allocations: 106.8 kB / 16.92 MB, free: 5.766 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.001886/0.001886, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.453/1.453, allocations: 222.9 MB / 241.6 MB, free: 15.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001976/0.001976, allocations: 43.88 kB / 300.7 MB, free: 5.816 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.142/0.144, allocations: 49.44 MB / 350.2 MB, free: 4.367 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ParallelResonance): time 0.00683/0.1509, allocations: 2.886 MB / 353 MB, free: 1.457 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001927/0.1529, allocations: 0.6855 MB / 353.7 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002745/0.1532, allocations: 7.938 kB / 353.7 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000312/0.1535, allocations: 59.44 kB / 353.8 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003396/0.1539, allocations: 83.19 kB / 353.9 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004471/0.1544, allocations: 95.83 kB / 354 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006523/0.155, allocations: 382.9 kB / 354.3 MB, free: 152 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005122/0.1556, allocations: 164.5 kB / 354.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003394/0.1559, allocations: 147.4 kB / 354.6 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003297/0.1563, allocations: 159.3 kB / 354.8 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.352e-05/0.1564, allocations: 32 kB / 354.8 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001067/0.1565, allocations: 36 kB / 354.9 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001059/0.1566, allocations: 75.7 kB / 354.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002734/0.1569, allocations: 171.2 kB / 355.1 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006033/0.1575, allocations: 382.9 kB / 355.5 MB, free: 15 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.1576, allocations: 3.938 kB / 355.5 MB, free: 15 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.1576, allocations: 0 / 355.5 MB, free: 15 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.82e-05/0.1576, allocations: 4 kB / 355.5 MB, free: 14.99 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.001701/0.1593, allocations: 0.6121 MB / 356.1 MB, free: 14.33 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.527e-05/0.1594, allocations: 16.03 kB / 356.1 MB, free: 14.31 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001255/0.1595, allocations: 66.72 kB / 356.2 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001317/0.1597, allocations: 40.47 kB / 356.2 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004911/0.1602, allocations: 260.2 kB / 356.5 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.885e-05/0.1603, allocations: 25.03 kB / 356.5 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.005e-05/0.1604, allocations: 36.38 kB / 356.5 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000946/0.1614, allocations: 282.2 kB / 356.8 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.697e-05/0.1614, allocations: 0 / 356.8 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.806e-05/0.1615, allocations: 8 kB / 356.8 MB, free: 13.56 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.612e-05/0.1615, allocations: 12 kB / 356.8 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000859/0.1624, allocations: 218.4 kB / 357 MB, free: 13.33 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002822/0.1652, allocations: 1.03 MB / 358.1 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000563/0.1658, allocations: 162.4 kB / 358.2 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005004/0.1663, allocations: 139.9 kB / 358.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.541e-05/0.1664, allocations: 4 kB / 358.4 MB, free: 11.92 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.798e-05/0.1664, allocations: 30.56 kB / 358.4 MB, free: 11.88 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 2.705e-06/0.1665, allocations: 0 / 358.4 MB, free: 11.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=19): time 0.001038/0.1675, allocations: 232.6 kB / 358.6 MB, free: 11.65 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.719e-05/0.1676, allocations: 51.41 kB / 358.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003604/0.168, allocations: 223 kB / 358.9 MB, free: 11.36 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.618e-05/0.168, allocations: 25.7 kB / 358.9 MB, free: 11.33 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00019/0.1682, allocations: 192 kB / 359.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.183e-05/0.1683, allocations: 74.94 kB / 359.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001438/0.1685, allocations: 53.98 kB / 359.2 MB, free: 11 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001787/0.1687, allocations: 334.8 kB / 359.6 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003147/0.169, allocations: 68.52 kB / 359.6 MB, free: 10.6 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004121/0.1695, allocations: 143.3 kB / 359.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007452/0.1702, allocations: 225.2 kB / 360 MB, free: 10.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.1702, allocations: 0 / 360 MB, free: 10.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009855/0.1712, allocations: 269 kB / 360.3 MB, free: 9.906 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.935e-05/0.1713, allocations: 8 kB / 360.3 MB, free: 9.898 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.1713, allocations: 0 / 360.3 MB, free: 9.898 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.517e-05/0.1714, allocations: 4 kB / 360.3 MB, free: 9.895 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00058/0.172, allocations: 79.83 kB / 360.3 MB, free: 9.816 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.928e-05/0.172, allocations: 4 kB / 360.3 MB, free: 9.812 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003436/0.1723, allocations: 31.73 kB / 360.4 MB, free: 9.781 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.68e-05/0.1724, allocations: 8.219 kB / 360.4 MB, free: 9.773 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.0003206/0.1727, allocations: 149.7 kB / 360.5 MB, free: 9.617 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.618e-05/0.1729, allocations: 23.75 kB / 360.6 MB, free: 9.594 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007609/0.1736, allocations: 199.3 kB / 360.8 MB, free: 9.395 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.716e-06/0.1737, allocations: 7.938 kB / 360.8 MB, free: 9.387 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.1737, allocations: 0 / 360.8 MB, free: 9.387 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.1737, allocations: 0 / 360.8 MB, free: 9.387 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001457/0.1752, allocations: 0.6013 MB / 361.4 MB, free: 8.723 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.264e-06/0.1752, allocations: 4 kB / 361.4 MB, free: 8.719 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005616/0.1758, allocations: 47.97 kB / 361.4 MB, free: 8.672 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.313e-05/0.1758, allocations: 4 kB / 361.4 MB, free: 8.668 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.823e-05/0.1758, allocations: 7.938 kB / 361.4 MB, free: 8.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.638e-06/0.1759, allocations: 12 kB / 361.4 MB, free: 8.648 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.1759, allocations: 0 / 361.4 MB, free: 8.648 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001093/0.177, allocations: 381.2 kB / 361.8 MB, free: 8.254 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.725e-05/0.1771, allocations: 92.86 kB / 361.9 MB, free: 8.145 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.521e-05/0.1772, allocations: 12.06 kB / 361.9 MB, free: 8.133 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003234/0.1775, allocations: 11.98 kB / 361.9 MB, free: 8.121 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.195e-05/0.1776, allocations: 19.97 kB / 361.9 MB, free: 8.102 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.919e-05/0.1776, allocations: 4 kB / 361.9 MB, free: 8.098 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001862/0.1778, allocations: 160.5 kB / 362.1 MB, free: 7.941 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1778, allocations: 0 / 362.1 MB, free: 7.941 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005468/0.1784, allocations: 79.69 kB / 362.2 MB, free: 7.863 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.001264/0.1797, allocations: 0.9135 MB / 363.1 MB, free: 6.914 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007482/0.1805, allocations: 187.8 kB / 363.3 MB, free: 6.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.11e-06/0.1805, allocations: 0 / 363.3 MB, free: 6.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003247/0.1808, allocations: 79.91 kB / 363.4 MB, free: 6.652 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007248/0.1816, allocations: 35.97 kB / 363.4 MB, free: 6.621 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006209/0.1878, allocations: 2.811 MB / 366.2 MB, free: 3.652 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004567/0.1883, allocations: 0.7675 MB / 367 MB, free: 2.859 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002182/0.1885, allocations: 25.94 kB / 367 MB, free: 2.836 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002008/0.1887, allocations: 91.41 kB / 367.1 MB, free: 2.746 MB / 302.1 MB Notification: Performance of SimCode: time 9.71e-07/0.1888, allocations: 4 kB / 367.1 MB, free: 2.742 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1646/0.3534, allocations: 4.532 MB / 371.6 MB, free: 25.12 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.936/8.289, allocations: 9.266 kB / 371.6 MB, free: 25.12 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ParallelResonance.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ParallelResonance/ParallelResonance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches