Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001682/0.001682, allocations: 117.2 kB / 17.78 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001923/0.001923, allocations: 200.6 kB / 18.73 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.343/1.343, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001155/0.001155, allocations: 59.91 kB / 358.2 MB, free: 13.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2432/0.2444, allocations: 50.53 MB / 408.8 MB, free: 1.496 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.006015/0.2504, allocations: 5.4 MB / 414.2 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002884/0.2533, allocations: 1.512 MB / 415.7 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005302/0.2539, allocations: 27.88 kB / 415.7 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004695/0.2544, allocations: 217.8 kB / 415.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000588/0.255, allocations: 202 kB / 416.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000824/0.2558, allocations: 415.3 kB / 416.5 MB, free: 9.715 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001148/0.257, allocations: 1.13 MB / 417.7 MB, free: 8.574 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006398/0.2576, allocations: 488.2 kB / 418.1 MB, free: 8.074 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005931/0.2582, allocations: 398.3 kB / 418.5 MB, free: 7.684 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004995/0.2587, allocations: 433.5 kB / 418.9 MB, free: 7.258 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001068/0.2589, allocations: 84 kB / 419 MB, free: 7.176 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001914/0.2591, allocations: 104 kB / 419.1 MB, free: 7.074 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001638/0.2592, allocations: 215.1 kB / 419.3 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005059/0.2597, allocations: 0.4932 MB / 419.8 MB, free: 6.367 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001275/0.261, allocations: 1.185 MB / 421 MB, free: 5.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.261, allocations: 8 kB / 421 MB, free: 5.172 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.057e-06/0.2611, allocations: 0 / 421 MB, free: 5.172 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.502e-05/0.2611, allocations: 3.938 kB / 421 MB, free: 5.168 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.001819/0.2629, allocations: 1.347 MB / 422.4 MB, free: 3.77 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.263, allocations: 12.03 kB / 422.4 MB, free: 3.758 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001414/0.2631, allocations: 152.2 kB / 422.5 MB, free: 3.602 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003453/0.2635, allocations: 147.1 kB / 422.7 MB, free: 3.457 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009759/0.2644, allocations: 0.6698 MB / 423.4 MB, free: 2.746 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.185e-05/0.2645, allocations: 77.94 kB / 423.4 MB, free: 2.668 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001248/0.2647, allocations: 96 kB / 423.5 MB, free: 2.574 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001513/0.2662, allocations: 1.031 MB / 424.6 MB, free: 1.422 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.22e-05/0.2662, allocations: 11.89 kB / 424.6 MB, free: 1.41 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.93e-05/0.2663, allocations: 44 kB / 424.6 MB, free: 1.367 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.439e-05/0.2663, allocations: 24 kB / 424.6 MB, free: 1.344 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001049/0.2674, allocations: 0.5578 MB / 425.2 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004876/0.2723, allocations: 5.49 MB / 430.7 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005795/0.2729, allocations: 236.9 kB / 430.9 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002851/0.2732, allocations: 157.6 kB / 431.1 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001305/0.2733, allocations: 97.02 kB / 431.2 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.75e-05/0.2733, allocations: 34.56 kB / 431.2 MB, free: 10.44 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.074e-06/0.2734, allocations: 4 kB / 431.2 MB, free: 10.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.003778/0.2771, allocations: 1.743 MB / 432.9 MB, free: 8.598 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.876e-05/0.2772, allocations: 85.05 kB / 433 MB, free: 8.496 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006325/0.2778, allocations: 0.6451 MB / 433.7 MB, free: 7.836 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.713e-05/0.2779, allocations: 29.7 kB / 433.7 MB, free: 7.801 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003492/0.2782, allocations: 0.6239 MB / 434.3 MB, free: 7.168 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001014/0.2783, allocations: 154.8 kB / 434.5 MB, free: 7.016 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001587/0.2785, allocations: 138.5 kB / 434.6 MB, free: 6.875 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.2787, allocations: 386.8 kB / 435 MB, free: 6.488 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002964/0.279, allocations: 149.9 kB / 435.1 MB, free: 6.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004807/0.2795, allocations: 497.1 kB / 435.6 MB, free: 5.695 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008337/0.2803, allocations: 0.6998 MB / 436.3 MB, free: 4.832 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.2803, allocations: 4 kB / 436.3 MB, free: 4.828 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001085/0.2814, allocations: 0.7153 MB / 437 MB, free: 4.105 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.672e-05/0.2814, allocations: 10.81 kB / 437 MB, free: 4.098 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.562e-05/0.2815, allocations: 12.78 kB / 437.1 MB, free: 4.086 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.88e-05/0.2815, allocations: 20 kB / 437.1 MB, free: 4.066 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006172/0.2821, allocations: 207.6 kB / 437.3 MB, free: 3.863 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.444e-05/0.2822, allocations: 23.92 kB / 437.3 MB, free: 3.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000363/0.2825, allocations: 31.98 kB / 437.3 MB, free: 3.809 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.739e-05/0.2826, allocations: 40 kB / 437.4 MB, free: 3.77 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.0002987/0.2829, allocations: 229.4 kB / 437.6 MB, free: 3.535 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001134/0.283, allocations: 83.48 kB / 437.7 MB, free: 3.453 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001121/0.2831, allocations: 82.58 kB / 437.8 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.593e-06/0.2831, allocations: 7.938 kB / 437.8 MB, free: 3.359 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.2831, allocations: 0 / 437.8 MB, free: 3.359 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.2832, allocations: 0 / 437.8 MB, free: 3.359 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002041/0.2852, allocations: 1.315 MB / 439.1 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.2852, allocations: 3.938 kB / 439.1 MB, free: 1.973 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004515/0.2857, allocations: 99.86 kB / 439.2 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.171e-05/0.2857, allocations: 8.094 kB / 439.2 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.287e-05/0.2858, allocations: 19.98 kB / 439.2 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.618e-06/0.2858, allocations: 7.938 kB / 439.2 MB, free: 1.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.2858, allocations: 0 / 439.2 MB, free: 1.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001013/0.2868, allocations: 0.7052 MB / 439.9 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001248/0.2869, allocations: 140.6 kB / 440.1 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.332e-05/0.287, allocations: 16.03 kB / 440.1 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002939/0.2873, allocations: 23.98 kB / 440.1 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.486e-05/0.2874, allocations: 27.91 kB / 440.1 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.237e-05/0.2874, allocations: 15.98 kB / 440.1 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004599/0.2879, allocations: 423 kB / 440.6 MB, free: 468 kB / 350.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2879, allocations: 0 / 440.6 MB, free: 468 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.000673/0.2886, allocations: 140 kB / 440.7 MB, free: 328 kB / 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.001222/0.2898, allocations: 1.266 MB / 442 MB, free: 15.01 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007617/0.2906, allocations: 430.4 kB / 442.4 MB, free: 14.59 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.2906, allocations: 4 kB / 442.4 MB, free: 14.59 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002697/0.2909, allocations: 163 kB / 442.5 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005315/0.2914, allocations: 71.39 kB / 442.6 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007503/0.2989, allocations: 6.144 MB / 448.8 MB, free: 7.727 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005003/0.2994, allocations: 1 MB / 449.8 MB, free: 6.699 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002831/0.2997, allocations: 94.06 kB / 449.9 MB, free: 6.605 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004179/0.3002, allocations: 391.3 kB / 450.2 MB, free: 6.223 MB / 366.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3002, allocations: 0 / 450.2 MB, free: 6.223 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03632/0.3365, allocations: 11.72 MB / 462 MB, free: 10.61 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.276/8.612, allocations: 8.016 kB / 462 MB, free: 10.6 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Analog_Examples_ResonanceCircuits.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches