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.001848/0.001848, allocations: 113.2 kB / 17.73 MB, free: 5.32 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.001995/0.001995, allocations: 188.2 kB / 18.67 MB, free: 4.387 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.626/1.626, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.00129/0.00129, allocations: 51.94 kB / 328 MB, free: 3.785 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09131/0.09261, allocations: 46.61 MB / 374.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.1945/0.2872, allocations: 5.339 MB / 380 MB, free: 9.172 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00269/0.2899, allocations: 1.476 MB / 381.5 MB, free: 9.148 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005079/0.2905, allocations: 26.56 kB / 381.5 MB, free: 9.148 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000419/0.2909, allocations: 218 kB / 381.7 MB, free: 9.035 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005361/0.2915, allocations: 195.1 kB / 381.9 MB, free: 8.926 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008249/0.2923, allocations: 398.5 kB / 382.3 MB, free: 8.914 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001198/0.2935, allocations: 1.129 MB / 383.4 MB, free: 8.684 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006949/0.2943, allocations: 488.9 kB / 383.9 MB, free: 8.457 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005101/0.2948, allocations: 400.8 kB / 384.3 MB, free: 8.254 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003985/0.2952, allocations: 432.3 kB / 384.7 MB, free: 8.008 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000122/0.2953, allocations: 83.78 kB / 384.8 MB, free: 8.008 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001866/0.2955, allocations: 96.89 kB / 384.9 MB, free: 8.004 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001371/0.2957, allocations: 211.8 kB / 385.1 MB, free: 7.859 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003225/0.296, allocations: 0.4952 MB / 385.6 MB, free: 7.527 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001147/0.2971, allocations: 1.178 MB / 386.8 MB, free: 7.047 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.2971, allocations: 0 / 386.8 MB, free: 7.047 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.2972, allocations: 1.188 kB / 386.8 MB, free: 7.047 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.93e-05/0.2972, allocations: 0 / 386.8 MB, free: 7.047 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: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.001775/0.299, allocations: 1.34 MB / 388.1 MB, free: 6.137 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.299, allocations: 10.16 kB / 388.1 MB, free: 6.137 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001348/0.2992, allocations: 150.8 kB / 388.3 MB, free: 6.035 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001629/0.2993, allocations: 129.3 kB / 388.4 MB, free: 5.969 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000962/0.3003, allocations: 0.6617 MB / 389.1 MB, free: 5.555 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.935e-05/0.3004, allocations: 77.98 kB / 389.1 MB, free: 5.516 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001171/0.3005, allocations: 105 kB / 389.2 MB, free: 5.477 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001522/0.302, allocations: 1.025 MB / 390.3 MB, free: 4.836 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.359e-05/0.3021, allocations: 8.281 kB / 390.3 MB, free: 4.832 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.707e-05/0.3021, allocations: 44.69 kB / 390.3 MB, free: 4.801 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.382e-05/0.3022, allocations: 25.94 kB / 390.3 MB, free: 4.801 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001046/0.3032, allocations: 0.555 MB / 390.9 MB, free: 4.605 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004075/0.3073, allocations: 5.501 MB / 396.4 MB, free: 0 / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006708/0.308, allocations: 246.8 kB / 396.6 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003161/0.3083, allocations: 157.4 kB / 396.8 MB, free: 15.83 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000159/0.3085, allocations: 91.78 kB / 396.9 MB, free: 15.73 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.428e-05/0.3085, allocations: 41.86 kB / 396.9 MB, free: 15.69 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 1.713e-06/0.3086, allocations: 0 / 396.9 MB, free: 15.69 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.00427/0.3128, allocations: 1.738 MB / 398.7 MB, free: 14.6 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.243e-05/0.3129, allocations: 85.91 kB / 398.7 MB, free: 14.5 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008891/0.3138, allocations: 0.6357 MB / 399.4 MB, free: 14.21 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.715e-05/0.3139, allocations: 32.48 kB / 399.4 MB, free: 14.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004404/0.3143, allocations: 0.6167 MB / 400 MB, free: 13.69 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001168/0.3144, allocations: 154.7 kB / 400.2 MB, free: 13.57 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001849/0.3146, allocations: 134.5 kB / 400.3 MB, free: 13.5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000246/0.3149, allocations: 388.5 kB / 400.7 MB, free: 13.15 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003342/0.3152, allocations: 152.1 kB / 400.8 MB, free: 13.11 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006484/0.3159, allocations: 0.4906 MB / 401.3 MB, free: 12.6 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000987/0.3169, allocations: 0.7042 MB / 402 MB, free: 11.96 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.388e-06/0.3169, allocations: 4.469 kB / 402 MB, free: 11.96 MB / 334.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001487/0.3184, allocations: 0.7108 MB / 402.7 MB, free: 11.66 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.498e-05/0.3184, allocations: 9.156 kB / 402.8 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.36e-05/0.3185, allocations: 12.47 kB / 402.8 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.74e-05/0.3185, allocations: 21.34 kB / 402.8 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006812/0.3192, allocations: 203.4 kB / 403 MB, free: 11.63 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.14e-05/0.3192, allocations: 26.86 kB / 403 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004558/0.3197, allocations: 32.64 kB / 403 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.227e-05/0.3198, allocations: 36.7 kB / 403.1 MB, free: 11.61 MB / 334.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.0004187/0.3202, allocations: 222.4 kB / 403.3 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001342/0.3203, allocations: 79.84 kB / 403.4 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001298/0.3205, allocations: 77.38 kB / 403.5 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.055e-06/0.3205, allocations: 8.672 kB / 403.5 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.31e-05/0.3205, allocations: 1.375 kB / 403.5 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.815e-05/0.3205, allocations: 10.09 kB / 403.5 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002512/0.323, allocations: 1.315 MB / 404.8 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.3231, allocations: 1.375 kB / 404.8 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004725/0.3235, allocations: 105.2 kB / 404.9 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.171e-05/0.3236, allocations: 6.688 kB / 404.9 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.862e-05/0.3236, allocations: 15.05 kB / 404.9 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.732e-06/0.3236, allocations: 2.75 kB / 404.9 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.092e-06/0.3236, allocations: 6.688 kB / 404.9 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001287/0.3249, allocations: 0.7117 MB / 405.6 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002047/0.3251, allocations: 145.9 kB / 405.8 MB, free: 9.969 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.781e-05/0.3252, allocations: 8.375 kB / 405.8 MB, free: 9.965 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003095/0.3255, allocations: 26.75 kB / 405.8 MB, free: 9.957 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001179/0.3257, allocations: 29.28 kB / 405.8 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.448e-05/0.3257, allocations: 16.23 kB / 405.9 MB, free: 9.945 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006301/0.3263, allocations: 418.9 kB / 406.3 MB, free: 9.77 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3263, allocations: 3.938 kB / 406.3 MB, free: 9.766 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008964/0.3272, allocations: 141.1 kB / 406.4 MB, free: 9.746 MB / 334.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.001462/0.3287, allocations: 1.252 MB / 407.7 MB, free: 8.773 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001039/0.3298, allocations: 440.7 kB / 408.1 MB, free: 8.633 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.3298, allocations: 0 / 408.1 MB, free: 8.633 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003295/0.3301, allocations: 158.7 kB / 408.2 MB, free: 8.586 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006263/0.3308, allocations: 75.66 kB / 408.3 MB, free: 8.539 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01022/0.341, allocations: 6.136 MB / 414.5 MB, free: 4.031 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007263/0.3418, allocations: 1 MB / 415.5 MB, free: 3.199 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003866/0.3422, allocations: 92.11 kB / 415.5 MB, free: 3.152 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004927/0.3427, allocations: 389.8 kB / 415.9 MB, free: 2.816 MB / 334.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3427, allocations: 0 / 415.9 MB, free: 2.816 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03352/0.3762, allocations: 11.65 MB / 427.6 MB, free: 8.516 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.662/9.039, allocations: 15.84 kB / 427.6 MB, free: 8.5 MB / 350.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