Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.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 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.QuasiStatic.SinglePhase.Examples.ParallelResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_ParallelResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_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.001762/0.001762, allocations: 109.5 kB / 16.92 MB, free: 5.809 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.001933/0.001933, allocations: 191.5 kB / 17.85 MB, free: 5.16 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.228/2.228, allocations: 222.9 MB / 241.6 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001812/0.001812, allocations: 44.2 kB / 300.7 MB, free: 5.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1218, allocations: 49.45 MB / 350.2 MB, free: 4.309 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance): time 0.005668/0.1275, allocations: 3.679 MB / 353.9 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002853/0.1304, allocations: 1.429 MB / 355.3 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004004/0.1308, allocations: 12 kB / 355.3 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002019/0.1329, allocations: 0.7481 MB / 356 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001709/0.1346, allocations: 0.5474 MB / 356.6 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009574/0.1356, allocations: 424.8 kB / 357 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006419/0.1362, allocations: 466 kB / 357.5 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008632/0.1371, allocations: 462.1 kB / 357.9 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000419/0.1375, allocations: 219.2 kB / 358.1 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004066/0.138, allocations: 270.9 kB / 358.4 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.535e-05/0.1381, allocations: 44 kB / 358.4 MB, free: 12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00052/0.1386, allocations: 207.8 kB / 358.6 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000109/0.1387, allocations: 111.6 kB / 358.7 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002763/0.139, allocations: 234.9 kB / 359 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009582/0.14, allocations: 0.6853 MB / 359.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.14, allocations: 4 kB / 359.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.14, allocations: 0 / 359.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.063e-05/0.14, allocations: 0 / 359.7 MB, free: 10.77 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: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 0.002329/0.1423, allocations: 0.917 MB / 360.6 MB, free: 9.805 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/0.1424, allocations: 12.03 kB / 360.6 MB, free: 9.793 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001714/0.1426, allocations: 95.95 kB / 360.7 MB, free: 9.691 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003817/0.1464, allocations: 495.9 kB / 361.2 MB, free: 9.207 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004652/0.1469, allocations: 315.5 kB / 361.5 MB, free: 8.859 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.705e-05/0.1469, allocations: 41.69 kB / 361.5 MB, free: 8.816 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.979e-05/0.1471, allocations: 48.38 kB / 361.6 MB, free: 8.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001018/0.1481, allocations: 0.5336 MB / 362.1 MB, free: 8.234 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.187e-05/0.1481, allocations: 4 kB / 362.1 MB, free: 8.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.278e-05/0.1482, allocations: 20 kB / 362.1 MB, free: 8.211 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.717e-05/0.1482, allocations: 16 kB / 362.1 MB, free: 8.195 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001103/0.1493, allocations: 0.579 MB / 362.7 MB, free: 7.613 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003114/0.1524, allocations: 1.894 MB / 364.6 MB, free: 5.617 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002222/0.1547, allocations: 2.167 MB / 366.8 MB, free: 3.066 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004899/0.1552, allocations: 266 kB / 367 MB, free: 2.801 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.96e-05/0.1553, allocations: 89.53 kB / 367.1 MB, free: 2.695 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.891e-05/0.1553, allocations: 39 kB / 367.2 MB, free: 2.648 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 2.896e-06/0.1553, allocations: 0 / 367.2 MB, free: 2.648 MB / 302.1 MB Notification: Performance of matching and sorting (n=47): time 0.001835/0.1572, allocations: 0.7348 MB / 367.9 MB, free: 1.887 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.521e-05/0.1572, allocations: 63.78 kB / 368 MB, free: 1.812 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001857/0.1574, allocations: 186.3 kB / 368.1 MB, free: 1.617 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.115e-05/0.1575, allocations: 37.7 kB / 368.2 MB, free: 1.574 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001199/0.1576, allocations: 220.5 kB / 368.4 MB, free: 1.355 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001178/0.1577, allocations: 161.5 kB / 368.6 MB, free: 1.195 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001414/0.1579, allocations: 94.14 kB / 368.6 MB, free: 1.098 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.158, allocations: 338.8 kB / 369 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003184/0.1583, allocations: 145.1 kB / 369.1 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003767/0.1587, allocations: 238.6 kB / 369.4 MB, free: 360 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.204/0.3627, allocations: 412.4 kB / 369.8 MB, free: 25.21 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-05/0.3628, allocations: 1.688 kB / 369.8 MB, free: 25.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.00208/0.3648, allocations: 0.534 MB / 370.3 MB, free: 25.16 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.973e-05/0.3649, allocations: 7.188 kB / 370.3 MB, free: 25.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.544e-05/0.3649, allocations: 1.406 kB / 370.3 MB, free: 25.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005732/0.3655, allocations: 88.67 kB / 370.4 MB, free: 25.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00053/0.3661, allocations: 93.91 kB / 370.5 MB, free: 25.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001844/0.3679, allocations: 1.78 MB / 372.3 MB, free: 23.81 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003311/0.3683, allocations: 46.97 kB / 372.3 MB, free: 23.81 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.911e-05/0.3683, allocations: 20.58 kB / 372.3 MB, free: 23.81 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (52): * Single equations (assignments): 51 * 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.0002346/0.3686, allocations: 165.6 kB / 372.5 MB, free: 23.69 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.41e-05/0.3687, allocations: 29.64 kB / 372.5 MB, free: 23.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001418/0.3701, allocations: 0.5424 MB / 373.1 MB, free: 23.6 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.828e-06/0.3701, allocations: 9.5 kB / 373.1 MB, free: 23.59 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.3701, allocations: 1.594 kB / 373.1 MB, free: 23.59 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.342e-05/0.3702, allocations: 2.859 kB / 373.1 MB, free: 23.59 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002179/0.3723, allocations: 1.15 MB / 374.2 MB, free: 22.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.3724, allocations: 0.75 kB / 374.2 MB, free: 22.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003749/0.3727, allocations: 84.42 kB / 374.3 MB, free: 22.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003034/0.3731, allocations: 73.8 kB / 374.4 MB, free: 22.9 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.817e-05/0.3731, allocations: 13.34 kB / 374.4 MB, free: 22.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001685/0.3748, allocations: 1.778 MB / 376.2 MB, free: 21.31 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.3748, allocations: 0 / 376.2 MB, free: 21.31 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00144/0.3763, allocations: 0.7996 MB / 377 MB, free: 20.88 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.738e-05/0.3764, allocations: 111.3 kB / 377.1 MB, free: 20.77 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.141e-05/0.3764, allocations: 12.53 kB / 377.1 MB, free: 20.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002605/0.3767, allocations: 19.05 kB / 377.1 MB, free: 20.76 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/0.3768, allocations: 41.42 kB / 377.1 MB, free: 20.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.955e-05/0.3769, allocations: 13.66 kB / 377.2 MB, free: 20.75 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000121/0.377, allocations: 136 kB / 377.3 MB, free: 20.66 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.377, allocations: 0 / 377.3 MB, free: 20.66 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006609/0.3777, allocations: 150.5 kB / 377.4 MB, free: 20.62 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 (44): * Single equations (assignments): 43 * 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.001842/0.3795, allocations: 1.379 MB / 378.8 MB, free: 19.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001435/0.381, allocations: 0.5887 MB / 379.4 MB, free: 19.36 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.381, allocations: 0 / 379.4 MB, free: 19.36 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006619/0.3816, allocations: 384.4 kB / 379.8 MB, free: 19.15 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005736/0.3822, allocations: 32.17 kB / 379.8 MB, free: 19.13 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006832/0.3891, allocations: 3.42 MB / 383.2 MB, free: 16.85 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003855/0.3895, allocations: 0.8102 MB / 384 MB, free: 16.14 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003849/0.3899, allocations: 51.23 kB / 384.1 MB, free: 16.12 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002735/0.3902, allocations: 133.4 kB / 384.2 MB, free: 16.03 MB / 302.1 MB Notification: Performance of SimCode: time 1.463e-06/0.3902, allocations: 0 / 384.2 MB, free: 16.03 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04874/0.4389, allocations: 7.461 MB / 391.7 MB, free: 13.97 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.77/15.21, allocations: 5.156 kB / 391.7 MB, free: 13.97 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.QuasiStatic.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_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_ParallelResonance.fmu > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/ParallelResonance/ParallelResonance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches