Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001769/0.001769, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001862/0.001862, allocations: 194.4 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.453/1.453, allocations: 225.7 MB / 252.5 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 178] 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.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001619/0.001619, allocations: 55.92 kB / 370.4 MB, free: 9.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.277/0.2786, allocations: 52.18 MB / 422.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003232/0.2818, allocations: 1.864 MB / 424.4 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001704/0.2835, allocations: 1.111 MB / 425.5 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.28e-05/0.2836, allocations: 7.938 kB / 425.5 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000993/0.2846, allocations: 486.6 kB / 426 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002271/0.2848, allocations: 191.4 kB / 426.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004251/0.2853, allocations: 167.4 kB / 426.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003257/0.2856, allocations: 231.1 kB / 426.6 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.862e-05/0.2857, allocations: 9.75 kB / 426.6 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001929/0.2859, allocations: 135.5 kB / 426.7 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002909/0.2862, allocations: 219.5 kB / 426.9 MB, free: 9.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.808e-05/0.2862, allocations: 8 kB / 427 MB, free: 9.973 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001509/0.2863, allocations: 67.89 kB / 427 MB, free: 9.906 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002056/0.2865, allocations: 263.3 kB / 427.3 MB, free: 9.648 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001829/0.2867, allocations: 198.4 kB / 427.5 MB, free: 9.453 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008304/0.2875, allocations: 0.7778 MB / 428.2 MB, free: 8.672 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.2876, allocations: 0 / 428.2 MB, free: 8.672 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.288e-06/0.2876, allocations: 3.984 kB / 428.3 MB, free: 8.668 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.447e-05/0.2876, allocations: 3.938 kB / 428.3 MB, free: 8.664 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.002671/0.2902, allocations: 1.145 MB / 429.4 MB, free: 7.484 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/0.2903, allocations: 12.03 kB / 429.4 MB, free: 7.473 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.019e-05/0.2903, allocations: 30.75 kB / 429.4 MB, free: 7.434 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001906/0.2905, allocations: 92.36 kB / 429.5 MB, free: 7.344 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001104/0.2916, allocations: 0.6954 MB / 430.2 MB, free: 6.609 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.798e-06/0.2916, allocations: 384 / 430.2 MB, free: 6.609 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.229e-05/0.2917, allocations: 8.359 kB / 430.2 MB, free: 6.602 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002915/0.292, allocations: 121.7 kB / 430.4 MB, free: 6.477 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.292, allocations: 4 kB / 430.4 MB, free: 6.473 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.465e-05/0.292, allocations: 0 / 430.4 MB, free: 6.473 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.292, allocations: 0 / 430.4 MB, free: 6.473 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003478/0.2923, allocations: 151.8 kB / 430.5 MB, free: 6.324 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001301/0.2936, allocations: 0.7197 MB / 431.2 MB, free: 5.562 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002367/0.2939, allocations: 86.52 kB / 431.3 MB, free: 5.469 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001859/0.2941, allocations: 72.91 kB / 431.4 MB, free: 5.395 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.305e-05/0.2941, allocations: 0 / 431.4 MB, free: 5.395 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.403e-05/0.2941, allocations: 38.55 kB / 431.4 MB, free: 5.348 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 7.82e-07/0.2941, allocations: 0 / 431.4 MB, free: 5.348 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008961/0.295, allocations: 332.9 kB / 431.7 MB, free: 5.016 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.265e-05/0.2951, allocations: 55.34 kB / 431.8 MB, free: 4.949 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001777/0.2969, allocations: 1.409 MB / 433.2 MB, free: 3.52 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.184e-05/0.2969, allocations: 25.7 kB / 433.2 MB, free: 3.488 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003367/0.2972, allocations: 384.4 kB / 433.6 MB, free: 3.109 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.645e-05/0.2972, allocations: 11.91 kB / 433.6 MB, free: 3.098 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.043e-05/0.2973, allocations: 25.7 kB / 433.6 MB, free: 3.066 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.2974, allocations: 313.9 kB / 434 MB, free: 2.754 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001702/0.2976, allocations: 67.94 kB / 434 MB, free: 2.688 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001753/0.2978, allocations: 78.53 kB / 434.1 MB, free: 2.602 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003381/0.2981, allocations: 162.4 kB / 434.3 MB, free: 2.434 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.2981, allocations: 4 kB / 434.3 MB, free: 2.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005887/0.2987, allocations: 268.9 kB / 434.5 MB, free: 2.16 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.2987, allocations: 4 kB / 434.5 MB, free: 2.156 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.848e-06/0.2987, allocations: 4 kB / 434.5 MB, free: 2.152 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.69e-05/0.2987, allocations: 0 / 434.5 MB, free: 2.152 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001876/0.2989, allocations: 11.98 kB / 434.5 MB, free: 2.141 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/0.2989, allocations: 4 kB / 434.5 MB, free: 2.137 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001841/0.2991, allocations: 12.08 kB / 434.6 MB, free: 2.125 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.834e-05/0.2991, allocations: 8 kB / 434.6 MB, free: 2.117 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (3): * Single equations (assignments): 3 * 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.0003611/0.2995, allocations: 337.6 kB / 434.9 MB, free: 1.777 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001837/0.2997, allocations: 99.38 kB / 435 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006018/0.3003, allocations: 281.7 kB / 435.3 MB, free: 1.395 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.3003, allocations: 0 / 435.3 MB, free: 1.395 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.3003, allocations: 4 kB / 435.3 MB, free: 1.391 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.3003, allocations: 3.984 kB / 435.3 MB, free: 1.387 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005085/0.3008, allocations: 425.9 kB / 435.7 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.3008, allocations: 0 / 435.7 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.079e-05/0.3009, allocations: 15.97 kB / 435.7 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.3009, allocations: 0 / 435.7 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.336e-05/0.3009, allocations: 12 kB / 435.7 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.3009, allocations: 0 / 435.7 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.3009, allocations: 0 / 435.7 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005073/0.3014, allocations: 323.2 kB / 436 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004072/0.3018, allocations: 155.3 kB / 436.2 MB, free: 428 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.58e-05/0.3019, allocations: 7.938 kB / 436.2 MB, free: 420 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001845/0.3021, allocations: 7.984 kB / 436.2 MB, free: 412 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.852e-05/0.3021, allocations: 3.938 kB / 436.2 MB, free: 408 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.224e-05/0.3021, allocations: 7.984 kB / 436.2 MB, free: 400 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001366/0.3035, allocations: 1.017 MB / 437.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3035, allocations: 0 / 437.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003533/0.3039, allocations: 64 kB / 437.3 MB, free: 15.3 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0009642/0.3048, allocations: 0.8719 MB / 438.2 MB, free: 14.4 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003736/0.3052, allocations: 123.9 kB / 438.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.3052, allocations: 0 / 438.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001645/0.3054, allocations: 59.89 kB / 438.3 MB, free: 14.22 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005684/0.3059, allocations: 100.5 kB / 438.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01193/0.3179, allocations: 8.792 MB / 447.2 MB, free: 5.184 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005013/0.3184, allocations: 407.9 kB / 447.6 MB, free: 4.766 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006554/0.319, allocations: 474.1 kB / 448.1 MB, free: 4.297 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003293/0.3194, allocations: 247.4 kB / 448.3 MB, free: 4.055 MB / 350.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3194, allocations: 0 / 448.3 MB, free: 4.055 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0508/0.3701, allocations: 17.38 MB / 465.7 MB, free: 2.875 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/11.89, allocations: 11.03 kB / 465.7 MB, free: 2.867 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_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_Batteries_Examples_ShowImpedance.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.644528869073838]