Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_3_2_3_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.001682/0.001682, allocations: 104.5 kB / 17.58 MB, free: 5.418 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.001925/0.001925, allocations: 191.9 kB / 18.51 MB, free: 4.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.344/1.344, allocations: 205.1 MB / 224.4 MB, free: 12.29 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 55.92 kB / 280.8 MB, free: 3.082 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08233/0.0835, allocations: 46.62 MB / 327.4 MB, free: 4.387 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.006118/0.08966, allocations: 5.351 MB / 332.7 MB, free: 14.99 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002667/0.09236, allocations: 1.466 MB / 334.2 MB, free: 13.52 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003446/0.09272, allocations: 23.88 kB / 334.2 MB, free: 13.5 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004324/0.09319, allocations: 217.8 kB / 334.4 MB, free: 13.29 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004483/0.09365, allocations: 194 kB / 334.6 MB, free: 13.09 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007149/0.09438, allocations: 399.4 kB / 335 MB, free: 12.7 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001011/0.0954, allocations: 1.111 MB / 336.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006041/0.09601, allocations: 472.2 kB / 336.6 MB, free: 11.11 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003949/0.09642, allocations: 402.2 kB / 337 MB, free: 10.71 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003931/0.09683, allocations: 429.6 kB / 337.4 MB, free: 10.29 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001185/0.09696, allocations: 88 kB / 337.5 MB, free: 10.21 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000179/0.09714, allocations: 104 kB / 337.6 MB, free: 10.11 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001645/0.09732, allocations: 215.1 kB / 337.8 MB, free: 9.895 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003759/0.0977, allocations: 0.4893 MB / 338.3 MB, free: 9.402 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009334/0.09864, allocations: 1.117 MB / 339.4 MB, free: 8.281 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.09866, allocations: 3.938 kB / 339.4 MB, free: 8.277 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.09866, allocations: 0 / 339.4 MB, free: 8.277 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.426e-05/0.09868, allocations: 0 / 339.4 MB, free: 8.277 MB / 286.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.001758/0.1004, allocations: 1.313 MB / 340.7 MB, free: 6.91 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.1005, allocations: 8.031 kB / 340.7 MB, free: 6.902 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001544/0.1007, allocations: 152.2 kB / 340.9 MB, free: 6.746 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001594/0.1008, allocations: 122.5 kB / 341 MB, free: 6.625 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007831/0.1016, allocations: 0.6146 MB / 341.6 MB, free: 5.969 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.359e-05/0.1017, allocations: 77.94 kB / 341.7 MB, free: 5.895 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001027/0.1018, allocations: 100 kB / 341.8 MB, free: 5.797 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001521/0.1033, allocations: 1.031 MB / 342.8 MB, free: 4.641 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.751e-05/0.1034, allocations: 7.938 kB / 342.8 MB, free: 4.633 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.806e-05/0.1034, allocations: 44 kB / 342.9 MB, free: 4.59 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.285e-05/0.1035, allocations: 28 kB / 342.9 MB, free: 4.562 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001074/0.1046, allocations: 0.5578 MB / 343.4 MB, free: 4 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004578/0.1091, allocations: 5.52 MB / 349 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005374/0.1097, allocations: 244.9 kB / 349.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003005/0.11, allocations: 165.6 kB / 349.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002041/0.1102, allocations: 85.09 kB / 349.5 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.187e-05/0.1103, allocations: 46.55 kB / 349.5 MB, free: 13.61 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.074e-06/0.1103, allocations: 0 / 349.5 MB, free: 13.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.003702/0.114, allocations: 1.702 MB / 351.2 MB, free: 11.8 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.096e-05/0.1141, allocations: 85.05 kB / 351.3 MB, free: 11.7 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006535/0.1147, allocations: 0.6333 MB / 351.9 MB, free: 11.06 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.834e-05/0.1148, allocations: 37.7 kB / 352 MB, free: 11.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003449/0.1151, allocations: 0.5909 MB / 352.5 MB, free: 10.42 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001054/0.1152, allocations: 153.9 kB / 352.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001488/0.1154, allocations: 138.5 kB / 352.8 MB, free: 10.12 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.1155, allocations: 386.8 kB / 353.2 MB, free: 9.738 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000288/0.1158, allocations: 149.9 kB / 353.4 MB, free: 9.594 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000473/0.1163, allocations: 493.1 kB / 353.8 MB, free: 8.949 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008335/0.1172, allocations: 0.6953 MB / 354.5 MB, free: 8.094 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.1172, allocations: 4 kB / 354.5 MB, free: 8.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001101/0.1183, allocations: 0.7193 MB / 355.3 MB, free: 7.363 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.234e-05/0.1183, allocations: 12 kB / 355.3 MB, free: 7.352 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.548e-05/0.1183, allocations: 11.98 kB / 355.3 MB, free: 7.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.195e-05/0.1184, allocations: 20 kB / 355.3 MB, free: 7.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005944/0.119, allocations: 195.6 kB / 355.5 MB, free: 7.129 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.434e-05/0.119, allocations: 24.23 kB / 355.5 MB, free: 7.105 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003392/0.1194, allocations: 39.98 kB / 355.6 MB, free: 7.066 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.753e-05/0.1194, allocations: 36 kB / 355.6 MB, free: 7.031 MB / 302.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.0002676/0.1197, allocations: 229.4 kB / 355.8 MB, free: 6.797 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001044/0.1198, allocations: 75.06 kB / 355.9 MB, free: 6.723 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001131/0.1199, allocations: 82.53 kB / 356 MB, free: 6.637 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.055e-05/0.1199, allocations: 7.938 kB / 356 MB, free: 6.629 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.12, allocations: 0 / 356 MB, free: 6.629 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.12, allocations: 3.938 kB / 356 MB, free: 6.625 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001906/0.1219, allocations: 1.319 MB / 357.3 MB, free: 5.234 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.87e-06/0.1219, allocations: 4 kB / 357.3 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004534/0.1224, allocations: 103.9 kB / 357.4 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.591e-06/0.1224, allocations: 4.156 kB / 357.4 MB, free: 5.125 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.77e-05/0.1224, allocations: 23.92 kB / 357.4 MB, free: 5.102 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.102e-06/0.1224, allocations: 7.938 kB / 357.4 MB, free: 5.094 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.1224, allocations: 4 kB / 357.4 MB, free: 5.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009462/0.1234, allocations: 0.7003 MB / 358.1 MB, free: 4.359 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001134/0.1235, allocations: 140.2 kB / 358.3 MB, free: 4.203 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.119e-05/0.1236, allocations: 15.97 kB / 358.3 MB, free: 4.188 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002905/0.1239, allocations: 27.98 kB / 358.3 MB, free: 4.16 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.603e-05/0.1239, allocations: 23.97 kB / 358.3 MB, free: 4.137 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.274e-05/0.124, allocations: 15.98 kB / 358.4 MB, free: 4.121 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004438/0.1244, allocations: 419 kB / 358.8 MB, free: 3.715 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1244, allocations: 0 / 358.8 MB, free: 3.715 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006106/0.125, allocations: 140 kB / 358.9 MB, free: 3.578 MB / 302.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.001234/0.1263, allocations: 1.254 MB / 360.2 MB, free: 2.277 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007826/0.1271, allocations: 446.2 kB / 360.6 MB, free: 1.844 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.1271, allocations: 0 / 360.6 MB, free: 1.844 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002674/0.1274, allocations: 164.2 kB / 360.8 MB, free: 1.684 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005234/0.1279, allocations: 80.67 kB / 360.8 MB, free: 1.613 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007496/0.1354, allocations: 6.349 MB / 367.2 MB, free: 10.78 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005732/0.136, allocations: 1.004 MB / 368.2 MB, free: 9.746 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002966/0.1363, allocations: 94 kB / 368.3 MB, free: 9.652 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004159/0.1367, allocations: 395.3 kB / 368.7 MB, free: 9.266 MB / 318.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1367, allocations: 0 / 368.7 MB, free: 9.266 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1651/0.3018, allocations: 11.35 MB / 380 MB, free: 53.86 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.661/7.963, allocations: 14.03 kB / 380 MB, free: 53.85 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Analog_Examples_ResonanceCircuits.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches