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.001808/0.001807, allocations: 121.8 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001998/0.001998, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.416/1.416, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001801/0.001801, allocations: 59.91 kB / 358.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2602/0.262, allocations: 50.54 MB / 408.8 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.006742/0.2688, allocations: 5.403 MB / 414.2 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003157/0.272, allocations: 1.512 MB / 415.7 MB, free: 10.58 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003706/0.2724, allocations: 27.88 kB / 415.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004632/0.2729, allocations: 213.8 kB / 415.9 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004521/0.2734, allocations: 198 kB / 416.1 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007314/0.2741, allocations: 411.3 kB / 416.5 MB, free: 9.742 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001175/0.2753, allocations: 1.134 MB / 417.7 MB, free: 8.598 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006545/0.2759, allocations: 476.2 kB / 418.1 MB, free: 8.109 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005152/0.2765, allocations: 406.2 kB / 418.5 MB, free: 7.711 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004636/0.2769, allocations: 433.5 kB / 419 MB, free: 7.285 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001061/0.2771, allocations: 84 kB / 419 MB, free: 7.203 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001776/0.2772, allocations: 100 kB / 419.1 MB, free: 7.105 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001699/0.2774, allocations: 219.1 kB / 419.3 MB, free: 6.891 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004158/0.2778, allocations: 0.501 MB / 419.8 MB, free: 6.387 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001199/0.279, allocations: 1.177 MB / 421 MB, free: 5.207 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.303e-06/0.2791, allocations: 4 kB / 421 MB, free: 5.203 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2791, allocations: 3.938 kB / 421 MB, free: 5.199 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.323e-05/0.2791, allocations: 3.938 kB / 421 MB, free: 5.195 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.001919/0.281, allocations: 1.347 MB / 422.4 MB, free: 3.797 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.2811, allocations: 12.03 kB / 422.4 MB, free: 3.785 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001679/0.2812, allocations: 152.2 kB / 422.5 MB, free: 3.629 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003536/0.2816, allocations: 151.1 kB / 422.7 MB, free: 3.48 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001039/0.2826, allocations: 0.6659 MB / 423.4 MB, free: 2.773 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.346e-05/0.2827, allocations: 77.94 kB / 423.4 MB, free: 2.695 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001307/0.2829, allocations: 96 kB / 423.5 MB, free: 2.602 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001612/0.2845, allocations: 1.031 MB / 424.6 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.459e-05/0.2845, allocations: 11.89 kB / 424.6 MB, free: 1.43 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.274e-05/0.2846, allocations: 44 kB / 424.6 MB, free: 1.387 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.408e-05/0.2846, allocations: 24 kB / 424.6 MB, free: 1.363 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001109/0.2857, allocations: 0.5578 MB / 425.2 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005185/0.2909, allocations: 5.498 MB / 430.7 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005726/0.2915, allocations: 228.9 kB / 430.9 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003243/0.2919, allocations: 157.6 kB / 431.1 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000161/0.292, allocations: 97.03 kB / 431.2 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.504e-05/0.2921, allocations: 34.56 kB / 431.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.835e-06/0.2921, allocations: 0 / 431.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.004078/0.2962, allocations: 1.743 MB / 432.9 MB, free: 8.621 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.115e-05/0.2963, allocations: 89.11 kB / 433 MB, free: 8.516 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007791/0.2971, allocations: 0.6373 MB / 433.7 MB, free: 7.863 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.326e-05/0.2971, allocations: 33.64 kB / 433.7 MB, free: 7.824 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005103/0.2976, allocations: 0.62 MB / 434.3 MB, free: 7.195 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001463/0.2978, allocations: 154.8 kB / 434.5 MB, free: 7.043 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001884/0.298, allocations: 134.5 kB / 434.6 MB, free: 6.906 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002629/0.2982, allocations: 386.7 kB / 435 MB, free: 6.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004311/0.2987, allocations: 153.9 kB / 435.1 MB, free: 6.367 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005854/0.2993, allocations: 0.4893 MB / 435.6 MB, free: 5.719 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001074/0.3004, allocations: 0.6987 MB / 436.3 MB, free: 4.859 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/0.3004, allocations: 7.938 kB / 436.3 MB, free: 4.852 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001255/0.3016, allocations: 0.716 MB / 437 MB, free: 4.129 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.46e-05/0.3017, allocations: 12.06 kB / 437.1 MB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.675e-05/0.3017, allocations: 12 kB / 437.1 MB, free: 4.105 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.229e-05/0.3017, allocations: 19.94 kB / 437.1 MB, free: 4.086 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006363/0.3024, allocations: 199.6 kB / 437.3 MB, free: 3.891 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.451e-05/0.3024, allocations: 19.94 kB / 437.3 MB, free: 3.871 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003497/0.3028, allocations: 31.98 kB / 437.3 MB, free: 3.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.186e-05/0.3028, allocations: 44 kB / 437.4 MB, free: 3.797 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.0003285/0.3032, allocations: 233.5 kB / 437.6 MB, free: 3.559 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001255/0.3033, allocations: 83.47 kB / 437.7 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001145/0.3034, allocations: 74.59 kB / 437.8 MB, free: 3.398 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.293e-06/0.3034, allocations: 7.938 kB / 437.8 MB, free: 3.391 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.3034, allocations: 0 / 437.8 MB, free: 3.391 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.3035, allocations: 3.984 kB / 437.8 MB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002115/0.3056, allocations: 1.312 MB / 439.1 MB, free: 2.004 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.3056, allocations: 3.938 kB / 439.1 MB, free: 2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005449/0.3061, allocations: 108 kB / 439.2 MB, free: 1.895 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.706e-06/0.3062, allocations: 7.938 kB / 439.2 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.768e-05/0.3062, allocations: 8 kB / 439.2 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.283e-06/0.3062, allocations: 7.938 kB / 439.2 MB, free: 1.871 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.3062, allocations: 0 / 439.2 MB, free: 1.871 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001055/0.3073, allocations: 0.7091 MB / 439.9 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001479/0.3074, allocations: 148.6 kB / 440.1 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.664e-05/0.3075, allocations: 12 kB / 440.1 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00028/0.3078, allocations: 19.98 kB / 440.1 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.973e-05/0.3079, allocations: 27.95 kB / 440.1 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.163e-05/0.3079, allocations: 12 kB / 440.1 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004955/0.3084, allocations: 427 kB / 440.6 MB, free: 496 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3084, allocations: 4 kB / 440.6 MB, free: 492 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006443/0.3091, allocations: 143.9 kB / 440.7 MB, free: 348 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.001413/0.3105, allocations: 1.254 MB / 442 MB, free: 15.04 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008417/0.3113, allocations: 442.5 kB / 442.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.061e-06/0.3114, allocations: 8.062 kB / 442.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002827/0.3116, allocations: 147.8 kB / 442.5 MB, free: 14.46 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005487/0.3122, allocations: 78.2 kB / 442.6 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008408/0.3206, allocations: 6.15 MB / 448.8 MB, free: 7.75 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000723/0.3214, allocations: 1.004 MB / 449.8 MB, free: 6.719 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000265/0.3216, allocations: 94.05 kB / 449.9 MB, free: 6.625 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004469/0.3221, allocations: 395.3 kB / 450.2 MB, free: 6.238 MB / 366.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3221, allocations: 0 / 450.2 MB, free: 6.238 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03812/0.3602, allocations: 11.71 MB / 462 MB, free: 10.63 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.934/9.295, allocations: 8.016 kB / 462 MB, free: 10.62 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.1.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