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.001247/0.001247, allocations: 115.2 kB / 17.06 MB, free: 6 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.001114/0.001114, allocations: 195 kB / 18.01 MB, free: 5.074 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.26/1.26, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009659/0.0009659, allocations: 51.92 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.28/0.281, allocations: 49.43 MB / 400.2 MB, free: 8.434 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ParallelResonance): time 0.00404/0.285, allocations: 2.899 MB / 403.1 MB, free: 5.926 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001177/0.2863, allocations: 0.6582 MB / 403.8 MB, free: 5.262 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001499/0.2864, allocations: 11.94 kB / 403.8 MB, free: 5.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001898/0.2866, allocations: 59.42 kB / 403.9 MB, free: 5.191 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001862/0.2868, allocations: 95.19 kB / 404 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002748/0.2871, allocations: 95.77 kB / 404.1 MB, free: 5.004 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004057/0.2875, allocations: 386.8 kB / 404.4 MB, free: 4.625 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002806/0.2878, allocations: 168.5 kB / 404.6 MB, free: 4.457 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002036/0.288, allocations: 139.5 kB / 404.7 MB, free: 4.32 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001721/0.2882, allocations: 163.3 kB / 404.9 MB, free: 4.16 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.771e-05/0.2883, allocations: 36 kB / 404.9 MB, free: 4.125 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.534e-05/0.2883, allocations: 32 kB / 405 MB, free: 4.094 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.005e-05/0.2884, allocations: 71.77 kB / 405 MB, free: 4.023 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001471/0.2885, allocations: 171.1 kB / 405.2 MB, free: 3.855 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003847/0.2889, allocations: 393.3 kB / 405.6 MB, free: 3.473 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2889, allocations: 3.984 kB / 405.6 MB, free: 3.469 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.51e-07/0.2889, allocations: 0 / 405.6 MB, free: 3.469 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.553e-06/0.289, allocations: 0 / 405.6 MB, free: 3.469 MB / 318.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.0009449/0.2899, allocations: 0.6196 MB / 406.2 MB, free: 2.801 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.29, allocations: 16.02 kB / 406.2 MB, free: 2.785 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.612e-05/0.29, allocations: 62.73 kB / 406.3 MB, free: 2.715 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.796e-05/0.2901, allocations: 44.69 kB / 406.3 MB, free: 2.672 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000349/0.2905, allocations: 259.8 kB / 406.6 MB, free: 2.379 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.337e-05/0.2905, allocations: 33.03 kB / 406.6 MB, free: 2.348 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.394e-05/0.2906, allocations: 32.33 kB / 406.6 MB, free: 2.316 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005354/0.2911, allocations: 282.2 kB / 406.9 MB, free: 2.031 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.2911, allocations: 0 / 406.9 MB, free: 2.031 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.205e-05/0.2912, allocations: 19.94 kB / 406.9 MB, free: 2.012 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-06/0.2912, allocations: 8 kB / 406.9 MB, free: 2.004 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004383/0.2916, allocations: 210.5 kB / 407.1 MB, free: 1.801 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001433/0.2931, allocations: 1.022 MB / 408.2 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003076/0.2934, allocations: 161.6 kB / 408.3 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002627/0.2936, allocations: 136.7 kB / 408.5 MB, free: 408 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.807e-05/0.2937, allocations: 0 / 408.5 MB, free: 408 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.645e-05/0.2937, allocations: 34.56 kB / 408.5 MB, free: 364 kB / 318.1 MB Notification: Performance of pre-optimization done (n=19): time 1.072e-06/0.2937, allocations: 7.938 kB / 408.5 MB, free: 356 kB / 318.1 MB Notification: Performance of matching and sorting (n=19): time 0.0005539/0.2943, allocations: 221.7 kB / 408.7 MB, free: 128 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.313e-05/0.2943, allocations: 55.39 kB / 408.8 MB, free: 60 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000205/0.2945, allocations: 219.1 kB / 409 MB, free: 15.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.898e-05/0.2946, allocations: 25.7 kB / 409 MB, free: 15.8 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001274/0.2947, allocations: 192.4 kB / 409.2 MB, free: 15.61 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.331e-05/0.2948, allocations: 83.36 kB / 409.3 MB, free: 15.53 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.306e-05/0.2948, allocations: 53.94 kB / 409.3 MB, free: 15.47 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.295, allocations: 334.8 kB / 409.7 MB, free: 15.13 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001689/0.2951, allocations: 64.47 kB / 409.7 MB, free: 15.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002052/0.2953, allocations: 147.4 kB / 409.9 MB, free: 14.89 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003604/0.2957, allocations: 233.1 kB / 410.1 MB, free: 14.63 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.2957, allocations: 0 / 410.1 MB, free: 14.63 MB / 334.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004789/0.2962, allocations: 273.1 kB / 410.4 MB, free: 14.36 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.2962, allocations: 8 kB / 410.4 MB, free: 14.35 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.846e-06/0.2962, allocations: 7.984 kB / 410.4 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.2963, allocations: 4 kB / 410.4 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002853/0.2966, allocations: 71.89 kB / 410.5 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.447e-06/0.2966, allocations: 4 kB / 410.5 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001594/0.2967, allocations: 39.97 kB / 410.5 MB, free: 14.22 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.612e-05/0.2968, allocations: 8 kB / 410.5 MB, free: 14.21 MB / 334.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.0001361/0.2969, allocations: 145.8 kB / 410.6 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.862e-05/0.297, allocations: 23.84 kB / 410.7 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004106/0.2974, allocations: 200.7 kB / 410.9 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.2974, allocations: 4 kB / 410.9 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.2974, allocations: 0 / 410.9 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.2974, allocations: 4 kB / 410.9 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008075/0.2982, allocations: 0.6013 MB / 411.5 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.2982, allocations: 0 / 411.5 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002794/0.2985, allocations: 59.91 kB / 411.5 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.2985, allocations: 0 / 411.5 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.888e-05/0.2986, allocations: 12.06 kB / 411.5 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.003e-06/0.2986, allocations: 0 / 411.5 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.2986, allocations: 0 / 411.5 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006034/0.2992, allocations: 378.8 kB / 411.9 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.11e-05/0.2993, allocations: 105 kB / 412 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.475e-05/0.2993, allocations: 8 kB / 412 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001733/0.2995, allocations: 11.98 kB / 412 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.008e-05/0.2995, allocations: 19.92 kB / 412.1 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.09e-05/0.2996, allocations: 7.984 kB / 412.1 MB, free: 12.54 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001288/0.2997, allocations: 160.6 kB / 412.2 MB, free: 12.38 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2997, allocations: 0 / 412.2 MB, free: 12.38 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003462/0.3, allocations: 79.78 kB / 412.3 MB, free: 12.3 MB / 334.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.0008831/0.3009, allocations: 0.9115 MB / 413.2 MB, free: 11.36 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004154/0.3014, allocations: 175.8 kB / 413.4 MB, free: 11.18 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3014, allocations: 0 / 413.4 MB, free: 11.18 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001687/0.3016, allocations: 83.83 kB / 413.5 MB, free: 11.1 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003412/0.3019, allocations: 41.16 kB / 413.5 MB, free: 11.06 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003408/0.3053, allocations: 2.825 MB / 416.3 MB, free: 8.094 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003264/0.3057, allocations: 0.7675 MB / 417.1 MB, free: 7.301 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.26e-05/0.3058, allocations: 25.94 kB / 417.1 MB, free: 7.277 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001185/0.3059, allocations: 91.41 kB / 417.2 MB, free: 7.188 MB / 334.1 MB Notification: Performance of SimCode: time 4e-07/0.3059, allocations: 0 / 417.2 MB, free: 7.188 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0228/0.3287, allocations: 4.648 MB / 421.9 MB, free: 2.648 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.858/8.187, allocations: 14.03 kB / 421.9 MB, free: 2.637 MB / 334.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