Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.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.ResonanceCircuits,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits",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.001149/0.001149, allocations: 108.8 kB / 17.06 MB, free: 6.129 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.001195/0.001195, allocations: 191 kB / 18 MB, free: 5.207 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.455/1.455, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 51.92 kB / 350.8 MB, free: 3.727 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2569/0.2581, allocations: 49.43 MB / 400.3 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.007023/0.2652, allocations: 5.373 MB / 405.6 MB, free: 3.41 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003122/0.2684, allocations: 1.442 MB / 407.1 MB, free: 1.965 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009049/0.2693, allocations: 27.88 kB / 407.1 MB, free: 1.938 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007159/0.27, allocations: 213.8 kB / 407.3 MB, free: 1.727 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008907/0.271, allocations: 194 kB / 407.5 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009095/0.2719, allocations: 391.4 kB / 407.9 MB, free: 1.152 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001333/0.2732, allocations: 1.123 MB / 409 MB, free: 24 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000712/0.274, allocations: 488.2 kB / 409.5 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005204/0.2745, allocations: 394.3 kB / 409.9 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004709/0.275, allocations: 429.5 kB / 410.3 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001303/0.2751, allocations: 84 kB / 410.4 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001961/0.2753, allocations: 99.98 kB / 410.5 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001593/0.2755, allocations: 215 kB / 410.7 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004196/0.2759, allocations: 0.4932 MB / 411.2 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001039/0.277, allocations: 1.173 MB / 412.3 MB, free: 12.65 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.277, allocations: 4 kB / 412.3 MB, free: 12.64 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.277, allocations: 0 / 412.3 MB, free: 12.64 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.915e-05/0.277, allocations: 0 / 412.3 MB, free: 12.64 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.001829/0.2789, allocations: 1.301 MB / 413.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.2789, allocations: 12.03 kB / 413.7 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001497/0.2791, allocations: 152.2 kB / 413.8 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001643/0.2792, allocations: 126.4 kB / 413.9 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009756/0.2802, allocations: 0.6459 MB / 414.6 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.603e-05/0.2803, allocations: 85.88 kB / 414.7 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001305/0.2804, allocations: 103.9 kB / 414.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0015/0.2819, allocations: 1.027 MB / 415.8 MB, free: 8.977 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.235e-05/0.282, allocations: 7.938 kB / 415.8 MB, free: 8.969 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.098e-05/0.282, allocations: 44 kB / 415.8 MB, free: 8.926 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.128e-05/0.2821, allocations: 28 kB / 415.9 MB, free: 8.898 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001101/0.2832, allocations: 0.5578 MB / 416.4 MB, free: 8.336 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004445/0.2876, allocations: 5.485 MB / 421.9 MB, free: 2.566 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005299/0.2882, allocations: 244.8 kB / 422.2 MB, free: 2.309 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002982/0.2885, allocations: 153.6 kB / 422.3 MB, free: 2.152 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001208/0.2886, allocations: 85.36 kB / 422.4 MB, free: 2.051 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.494e-05/0.2887, allocations: 34.56 kB / 422.4 MB, free: 2.008 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 3.146e-06/0.2887, allocations: 0 / 422.4 MB, free: 2.008 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.003732/0.2924, allocations: 1.719 MB / 424.1 MB, free: 192 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.895e-05/0.2925, allocations: 85.05 kB / 424.2 MB, free: 88 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007011/0.2932, allocations: 0.6372 MB / 424.9 MB, free: 15.44 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.845e-05/0.2932, allocations: 29.7 kB / 424.9 MB, free: 15.4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003833/0.2936, allocations: 0.5987 MB / 425.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001019/0.2937, allocations: 142 kB / 425.6 MB, free: 14.65 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001621/0.2939, allocations: 138.5 kB / 425.8 MB, free: 14.51 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.2941, allocations: 386.8 kB / 426.1 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003059/0.2944, allocations: 149.9 kB / 426.3 MB, free: 13.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005147/0.2949, allocations: 0.4932 MB / 426.8 MB, free: 13.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008813/0.2958, allocations: 0.7022 MB / 427.5 MB, free: 12.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.754e-06/0.2958, allocations: 4 kB / 427.5 MB, free: 12.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001146/0.297, allocations: 0.7073 MB / 428.2 MB, free: 11.74 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.35e-05/0.297, allocations: 12 kB / 428.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.643e-05/0.297, allocations: 12 kB / 428.2 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.1e-05/0.297, allocations: 16 kB / 428.2 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006302/0.2977, allocations: 204.2 kB / 428.4 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.676e-05/0.2977, allocations: 23.88 kB / 428.5 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003682/0.2981, allocations: 35.98 kB / 428.5 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.807e-05/0.2982, allocations: 36 kB / 428.5 MB, free: 11.41 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (96): * Single equations (assignments): 96 * 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.0003163/0.2985, allocations: 225.6 kB / 428.7 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001176/0.2986, allocations: 75.06 kB / 428.8 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001278/0.2987, allocations: 74.55 kB / 428.9 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.211e-06/0.2988, allocations: 7.938 kB / 428.9 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.227e-06/0.2988, allocations: 7.984 kB / 428.9 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.2988, allocations: 4 kB / 428.9 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002318/0.3011, allocations: 1.324 MB / 430.2 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.3011, allocations: 0 / 430.2 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004742/0.3016, allocations: 103.9 kB / 430.3 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.348e-05/0.3016, allocations: 7.938 kB / 430.3 MB, free: 9.508 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.962e-05/0.3017, allocations: 11.94 kB / 430.4 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.272e-06/0.3017, allocations: 8.094 kB / 430.4 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/0.3017, allocations: 4 kB / 430.4 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001038/0.3027, allocations: 0.697 MB / 431.1 MB, free: 8.754 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001612/0.3029, allocations: 148.1 kB / 431.2 MB, free: 8.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.336e-05/0.303, allocations: 8 kB / 431.2 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000291/0.3033, allocations: 19.98 kB / 431.2 MB, free: 8.562 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.657e-05/0.3034, allocations: 35.89 kB / 431.3 MB, free: 8.527 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.193e-05/0.3034, allocations: 12 kB / 431.3 MB, free: 8.516 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005037/0.3039, allocations: 423 kB / 431.7 MB, free: 8.109 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3039, allocations: 0 / 431.7 MB, free: 8.109 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006677/0.3046, allocations: 144 kB / 431.8 MB, free: 7.969 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (inductor2.i,capacitor2.v,inductor1.i,capacitor1.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 (40): * Single equations (assignments): 40 * 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.001332/0.3059, allocations: 1.246 MB / 433.1 MB, free: 6.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009398/0.3069, allocations: 445.1 kB / 433.5 MB, free: 6.246 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.3069, allocations: 0 / 433.5 MB, free: 6.246 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003008/0.3072, allocations: 157.2 kB / 433.7 MB, free: 6.094 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005658/0.3078, allocations: 74.36 kB / 433.7 MB, free: 6.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008144/0.3159, allocations: 6.087 MB / 439.8 MB, free: 15.45 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006377/0.3166, allocations: 1.008 MB / 440.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002689/0.3169, allocations: 94 kB / 440.9 MB, free: 14.32 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004529/0.3173, allocations: 391.3 kB / 441.3 MB, free: 13.94 MB / 366.1 MB Notification: Performance of SimCode: time 6.52e-07/0.3174, allocations: 0 / 441.3 MB, free: 13.94 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03361/0.351, allocations: 11.66 MB / 453 MB, free: 2.402 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.6/8.951, allocations: 3.859 kB / 453 MB, free: 2.398 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_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_ResonanceCircuits.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches