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.001547/0.001547, allocations: 105.5 kB / 20.43 MB, free: 1.473 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.001824/0.001824, allocations: 185 kB / 23.72 MB, free: 4.719 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.44/1.44, allocations: 225.6 MB / 252.5 MB, free: 13.04 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.001572/0.001572, allocations: 47.92 kB / 370.4 MB, free: 9.883 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2741/0.2756, allocations: 52.18 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003289/0.2789, allocations: 1.938 MB / 424.5 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001918/0.2808, allocations: 1.246 MB / 425.8 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001013/0.2809, allocations: 4 kB / 425.8 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001023/0.282, allocations: 0.5018 MB / 426.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002419/0.2822, allocations: 195.4 kB / 426.5 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004743/0.2827, allocations: 171.4 kB / 426.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003443/0.283, allocations: 229.8 kB / 426.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.346e-05/0.2831, allocations: 9.812 kB / 426.9 MB, free: 10.31 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001995/0.2833, allocations: 131.5 kB / 427 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003097/0.2836, allocations: 231.4 kB / 427.2 MB, free: 9.957 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.647e-05/0.2836, allocations: 8 kB / 427.2 MB, free: 9.949 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001448/0.2838, allocations: 63.91 kB / 427.3 MB, free: 9.887 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002266/0.284, allocations: 267.2 kB / 427.6 MB, free: 9.625 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002337/0.2843, allocations: 277.9 kB / 427.8 MB, free: 9.352 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008141/0.2851, allocations: 0.7748 MB / 428.6 MB, free: 8.574 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.2851, allocations: 0 / 428.6 MB, free: 8.574 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.2851, allocations: 0 / 428.6 MB, free: 8.574 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.875e-06/0.2851, allocations: 0 / 428.6 MB, free: 8.574 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.002766/0.2878, allocations: 1.137 MB / 429.8 MB, free: 7.402 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.2879, allocations: 11.97 kB / 429.8 MB, free: 7.391 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.55e-05/0.2879, allocations: 34.73 kB / 429.8 MB, free: 7.348 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001951/0.2881, allocations: 92.36 kB / 429.9 MB, free: 7.258 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001097/0.2892, allocations: 0.6992 MB / 430.6 MB, free: 6.52 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.597e-05/0.2892, allocations: 4.375 kB / 430.6 MB, free: 6.516 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.636e-05/0.2893, allocations: 384 / 430.6 MB, free: 6.516 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002949/0.2896, allocations: 129.7 kB / 430.7 MB, free: 6.383 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.2896, allocations: 0 / 430.7 MB, free: 6.383 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.447e-05/0.2896, allocations: 0 / 430.7 MB, free: 6.383 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-06/0.2896, allocations: 3.938 kB / 430.7 MB, free: 6.379 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003474/0.2899, allocations: 143.9 kB / 430.9 MB, free: 6.238 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001123/0.2911, allocations: 0.7859 MB / 431.7 MB, free: 5.41 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002159/0.2913, allocations: 98.44 kB / 431.7 MB, free: 5.305 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002084/0.2915, allocations: 72.91 kB / 431.8 MB, free: 5.23 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.727e-05/0.2915, allocations: 3.984 kB / 431.8 MB, free: 5.227 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.863e-05/0.2915, allocations: 30.56 kB / 431.9 MB, free: 5.188 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 1.283e-06/0.2915, allocations: 0 / 431.9 MB, free: 5.188 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0009041/0.2924, allocations: 332.9 kB / 432.2 MB, free: 4.855 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.013e-05/0.2925, allocations: 55.41 kB / 432.2 MB, free: 4.789 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001733/0.2942, allocations: 1.401 MB / 433.6 MB, free: 3.367 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.45e-05/0.2942, allocations: 25.7 kB / 433.7 MB, free: 3.336 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003458/0.2946, allocations: 388.4 kB / 434 MB, free: 2.953 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.931e-05/0.2946, allocations: 11.89 kB / 434.1 MB, free: 2.941 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.488e-05/0.2947, allocations: 25.7 kB / 434.1 MB, free: 2.91 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.2948, allocations: 309.9 kB / 434.4 MB, free: 2.602 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001751/0.295, allocations: 75.94 kB / 434.5 MB, free: 2.527 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000181/0.2952, allocations: 78.53 kB / 434.5 MB, free: 2.441 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003448/0.2955, allocations: 162.4 kB / 434.7 MB, free: 2.273 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.479e-06/0.2955, allocations: 4 kB / 434.7 MB, free: 2.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006063/0.2961, allocations: 268.9 kB / 435 MB, free: 2 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/0.2962, allocations: 7.281 kB / 435 MB, free: 1.996 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.2962, allocations: 4 kB / 435 MB, free: 1.992 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.496e-05/0.2962, allocations: 0 / 435 MB, free: 1.992 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001942/0.2964, allocations: 19.98 kB / 435 MB, free: 1.973 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.281e-06/0.2964, allocations: 4.094 kB / 435 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001948/0.2966, allocations: 7.984 kB / 435 MB, free: 1.961 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.776e-05/0.2966, allocations: 4 kB / 435 MB, free: 1.957 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.0003683/0.297, allocations: 333.6 kB / 435.3 MB, free: 1.621 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001872/0.2971, allocations: 99.38 kB / 435.4 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006137/0.2978, allocations: 281.6 kB / 435.7 MB, free: 1.238 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.844e-06/0.2978, allocations: 4 kB / 435.7 MB, free: 1.234 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.2978, allocations: 0 / 435.7 MB, free: 1.234 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.2978, allocations: 3.938 kB / 435.7 MB, free: 1.23 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005733/0.2983, allocations: 0.4899 MB / 436.2 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.2983, allocations: 0 / 436.2 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.335e-05/0.2984, allocations: 15.98 kB / 436.2 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.265e-06/0.2984, allocations: 0 / 436.2 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.446e-05/0.2984, allocations: 4 kB / 436.2 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.2984, allocations: 0 / 436.2 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.2985, allocations: 0 / 436.2 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005169/0.299, allocations: 327.2 kB / 436.5 MB, free: 352 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000386/0.2994, allocations: 155.3 kB / 436.7 MB, free: 196 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.789e-05/0.2994, allocations: 0 / 436.7 MB, free: 196 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001953/0.2996, allocations: 7.984 kB / 436.7 MB, free: 188 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.282e-05/0.2997, allocations: 11.98 kB / 436.7 MB, free: 176 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.779e-06/0.2997, allocations: 4 kB / 436.7 MB, free: 172 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001339/0.301, allocations: 1.013 MB / 437.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.301, allocations: 0 / 437.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003583/0.3014, allocations: 60 kB / 437.8 MB, free: 15.08 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.0009793/0.3024, allocations: 0.8718 MB / 438.7 MB, free: 14.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004239/0.3028, allocations: 131.8 kB / 438.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.3028, allocations: 0 / 438.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001669/0.303, allocations: 51.95 kB / 438.8 MB, free: 14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006297/0.3036, allocations: 100.4 kB / 438.9 MB, free: 13.9 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01217/0.3158, allocations: 8.795 MB / 447.7 MB, free: 4.965 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006728/0.3164, allocations: 1 MB / 448.7 MB, free: 3.941 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006679/0.3171, allocations: 474.3 kB / 449.2 MB, free: 3.473 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003303/0.3174, allocations: 255.3 kB / 449.4 MB, free: 3.223 MB / 350.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3174, allocations: 0 / 449.4 MB, free: 3.223 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04909/0.3665, allocations: 16.32 MB / 465.8 MB, free: 3.094 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.6/12.96, allocations: 15.78 kB / 465.8 MB, free: 3.078 MB / 366.1 MB " [Timeout remaining time 647] (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: 15.624503575996641]