Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.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 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: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.ParallelResonance,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_ParallelResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.ParallelResonance,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_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.001432/0.001432, allocations: 102.9 kB / 17.58 MB, free: 5.453 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.001608/0.001608, allocations: 187.9 kB / 18.51 MB, free: 4.531 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.34/1.34, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001861/0.001861, allocations: 52.14 kB / 280.8 MB, free: 3.082 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1075, allocations: 46.63 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.ParallelResonance): time 0.006952/0.1145, allocations: 3.734 MB / 331.1 MB, free: 0.6133 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003309/0.1178, allocations: 1.469 MB / 332.6 MB, free: 15.14 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003954/0.1183, allocations: 8 kB / 332.6 MB, free: 15.13 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002318/0.1206, allocations: 0.77 MB / 333.4 MB, free: 14.36 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001801/0.1225, allocations: 0.5597 MB / 333.9 MB, free: 13.79 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001242/0.1237, allocations: 430.5 kB / 334.3 MB, free: 13.37 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000921/0.1247, allocations: 485.7 kB / 334.8 MB, free: 12.89 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001139/0.1258, allocations: 474.2 kB / 335.3 MB, free: 12.43 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005231/0.1263, allocations: 223.2 kB / 335.5 MB, free: 12.21 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004964/0.1269, allocations: 294.8 kB / 335.8 MB, free: 11.92 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001189/0.127, allocations: 44 kB / 335.8 MB, free: 11.88 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006162/0.1276, allocations: 211.8 kB / 336 MB, free: 11.67 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001515/0.1278, allocations: 111.6 kB / 336.1 MB, free: 11.56 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000395/0.1282, allocations: 262.7 kB / 336.4 MB, free: 11.3 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001231/0.1294, allocations: 0.7009 MB / 337.1 MB, free: 10.6 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.1294, allocations: 0 / 337.1 MB, free: 10.6 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1295, allocations: 0 / 337.1 MB, free: 10.6 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.812e-05/0.1295, allocations: 0 / 337.1 MB, free: 10.6 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: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.003179/0.1327, allocations: 0.9404 MB / 338 MB, free: 9.609 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/0.1327, allocations: 12.03 kB / 338.1 MB, free: 9.598 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002179/0.133, allocations: 107.8 kB / 338.2 MB, free: 9.48 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006993/0.14, allocations: 0.5896 MB / 338.8 MB, free: 8.891 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006832/0.1407, allocations: 315.6 kB / 339.1 MB, free: 8.543 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.444e-05/0.1408, allocations: 49.62 kB / 339.1 MB, free: 8.496 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001251/0.1409, allocations: 56.12 kB / 339.2 MB, free: 8.441 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001459/0.1424, allocations: 0.5726 MB / 339.7 MB, free: 7.863 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.749e-05/0.1424, allocations: 4 kB / 339.7 MB, free: 7.859 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.062e-05/0.1425, allocations: 24 kB / 339.8 MB, free: 7.836 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.108e-05/0.1425, allocations: 12 kB / 339.8 MB, free: 7.824 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001622/0.1442, allocations: 0.6532 MB / 340.4 MB, free: 7.168 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004467/0.1486, allocations: 2.071 MB / 342.5 MB, free: 4.973 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003602/0.1523, allocations: 2.997 MB / 345.5 MB, free: 1.406 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006848/0.153, allocations: 278 kB / 345.8 MB, free: 1.133 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001206/0.1531, allocations: 89.53 kB / 345.9 MB, free: 1.027 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.574e-05/0.1532, allocations: 42.94 kB / 345.9 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of pre-optimization done (n=49): time 3.276e-06/0.1532, allocations: 0 / 345.9 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.002472/0.1557, allocations: 0.7504 MB / 346.6 MB, free: 200 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.715e-05/0.1557, allocations: 55.84 kB / 346.7 MB, free: 132 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002922/0.156, allocations: 209 kB / 346.9 MB, free: 15.92 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.108e-05/0.1561, allocations: 29.7 kB / 346.9 MB, free: 15.88 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001825/0.1563, allocations: 244.1 kB / 347.2 MB, free: 15.64 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001715/0.1565, allocations: 169.5 kB / 347.3 MB, free: 15.47 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001963/0.1567, allocations: 94.16 kB / 347.4 MB, free: 15.38 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.1569, allocations: 342.8 kB / 347.8 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004462/0.1573, allocations: 161 kB / 347.9 MB, free: 14.88 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005673/0.1579, allocations: 283.7 kB / 348.2 MB, free: 14.55 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001039/0.1589, allocations: 478.2 kB / 348.7 MB, free: 14.04 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.159, allocations: 0 / 348.7 MB, free: 14.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001591/0.1606, allocations: 0.5862 MB / 349.3 MB, free: 13.44 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.094e-05/0.1606, allocations: 8 kB / 349.3 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.1606, allocations: 4 kB / 349.3 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004699/0.1611, allocations: 77.09 kB / 349.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006008/0.1617, allocations: 119.8 kB / 349.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002377/0.1641, allocations: 1.77 MB / 351.2 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00043/0.1646, allocations: 59.36 kB / 351.3 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.948e-05/0.1646, allocations: 27.98 kB / 351.3 MB, free: 11.23 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (60): * Single equations (assignments): 59 * 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): 1 system {(2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002764/0.1649, allocations: 177.6 kB / 351.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.535e-05/0.165, allocations: 27.72 kB / 351.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001539/0.1666, allocations: 0.5551 MB / 352.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.055e-06/0.1666, allocations: 4 kB / 352.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.1666, allocations: 4 kB / 352.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.678e-06/0.1666, allocations: 7.922 kB / 352.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002525/0.1692, allocations: 1.173 MB / 353.3 MB, free: 9.207 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.1692, allocations: 0 / 353.3 MB, free: 9.207 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005118/0.1697, allocations: 87.83 kB / 353.3 MB, free: 9.121 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003751/0.1701, allocations: 80.86 kB / 353.4 MB, free: 9.039 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.837e-05/0.1701, allocations: 12 kB / 353.4 MB, free: 9.027 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002314/0.1725, allocations: 1.771 MB / 355.2 MB, free: 7.117 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.1725, allocations: 0 / 355.2 MB, free: 7.117 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001965/0.1745, allocations: 0.8219 MB / 356 MB, free: 6.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001213/0.1746, allocations: 116.6 kB / 356.1 MB, free: 6.137 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.523e-05/0.1747, allocations: 12 kB / 356.2 MB, free: 6.125 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003604/0.1751, allocations: 19.98 kB / 356.2 MB, free: 6.105 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001109/0.1752, allocations: 36.39 kB / 356.2 MB, free: 6.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.008e-05/0.1752, allocations: 20 kB / 356.2 MB, free: 6.051 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001894/0.1754, allocations: 147 kB / 356.4 MB, free: 5.906 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1754, allocations: 0 / 356.4 MB, free: 5.906 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008248/0.1763, allocations: 155.6 kB / 356.5 MB, free: 5.754 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (currentSource.pin_p.reference.gamma) * 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 (46): * Single equations (assignments): 45 * 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): 1 system {(2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002434/0.1787, allocations: 1.394 MB / 357.9 MB, free: 4.324 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001879/0.1806, allocations: 0.6126 MB / 358.5 MB, free: 3.699 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.1806, allocations: 0 / 358.5 MB, free: 3.699 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006319/0.1813, allocations: 394 kB / 358.9 MB, free: 3.305 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004273/0.1817, allocations: 28 kB / 358.9 MB, free: 3.277 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005497/0.1872, allocations: 3.671 MB / 362.6 MB, free: 15.41 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004659/0.1877, allocations: 0.8133 MB / 363.4 MB, free: 14.57 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000259/0.188, allocations: 55.25 kB / 363.5 MB, free: 14.52 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002006/0.1882, allocations: 147.3 kB / 363.6 MB, free: 14.38 MB / 318.1 MB Notification: Performance of SimCode: time 8.02e-07/0.1882, allocations: 0 / 363.6 MB, free: 14.38 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0306/0.2188, allocations: 7.764 MB / 371.4 MB, free: 6.547 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.44/10.66, allocations: 23.66 kB / 371.4 MB, free: 6.523 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.ParallelResonance.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.ParallelResonance.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.ParallelResonance.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.ParallelResonance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_ParallelResonance.fmu > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.ParallelResonance.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.ParallelResonance_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/QuasiStationary/SinglePhase/Examples/ParallelResonance/ParallelResonance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.ParallelResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches