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.001206/0.001206, allocations: 76.08 kB / 20.67 MB, free: 3.895 MB / 18.57 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.001063/0.001063, allocations: 153.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 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 0.9263/0.9263, allocations: 173.4 MB / 200.4 MB, free: 9.434 MB / 186.7 MB " [Timeout remaining time 179] 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 1.923e-06/1.923e-06, allocations: 0 / 318.4 MB, free: 6.387 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.169e-05/2.361e-05, allocations: 2.281 kB / 318.4 MB, free: 6.383 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002212/0.002235, allocations: 1.839 MB / 320.2 MB, free: 4.527 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001197/0.003432, allocations: 1.113 MB / 321.4 MB, free: 3.406 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.016e-05/0.003512, allocations: 4 kB / 321.4 MB, free: 3.402 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008504/0.004362, allocations: 0.4943 MB / 321.9 MB, free: 2.906 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001557/0.004518, allocations: 199.3 kB / 322.1 MB, free: 2.711 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003298/0.004848, allocations: 163.3 kB / 322.2 MB, free: 2.551 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002742/0.005122, allocations: 235 kB / 322.4 MB, free: 2.32 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.847e-05/0.005201, allocations: 5.812 kB / 322.4 MB, free: 2.312 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001789/0.00538, allocations: 155.5 kB / 322.6 MB, free: 2.16 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000204/0.005584, allocations: 211.7 kB / 322.8 MB, free: 1.953 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.698e-05/0.00561, allocations: 8 kB / 322.8 MB, free: 1.945 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001291/0.00574, allocations: 71.83 kB / 322.9 MB, free: 1.875 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001363/0.005876, allocations: 263.3 kB / 323.1 MB, free: 1.617 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.516e-05/0.005971, allocations: 135.5 kB / 323.3 MB, free: 1.484 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005286/0.0065, allocations: 0.7319 MB / 324 MB, free: 0.75 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.896e-06/0.006503, allocations: 0 / 324 MB, free: 0.75 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.006504, allocations: 4 kB / 324 MB, free: 0.7461 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.957e-06/0.006513, allocations: 0 / 324 MB, free: 0.7461 MB / 282.7 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.001598/0.008111, allocations: 1.136 MB / 325.1 MB, free: 15.58 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.008149, allocations: 8.922 kB / 325.2 MB, free: 15.57 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.372e-05/0.008183, allocations: 30.75 kB / 325.2 MB, free: 15.53 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001326/0.008316, allocations: 104.3 kB / 325.3 MB, free: 15.43 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000639/0.008955, allocations: 0.7024 MB / 326 MB, free: 14.69 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.416e-05/0.008969, allocations: 4.375 kB / 326 MB, free: 14.68 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.478e-05/0.008983, allocations: 384 / 326 MB, free: 14.68 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001953/0.009179, allocations: 118.2 kB / 326.1 MB, free: 14.56 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.62e-06/0.009184, allocations: 192 / 326.1 MB, free: 14.56 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.223e-05/0.009197, allocations: 4.125 kB / 326.1 MB, free: 14.56 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.009201, allocations: 0 / 326.1 MB, free: 14.56 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001964/0.009397, allocations: 147.9 kB / 326.3 MB, free: 14.41 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006717/0.01007, allocations: 0.7081 MB / 327 MB, free: 13.66 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001347/0.0102, allocations: 86.47 kB / 327 MB, free: 13.57 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.757e-05/0.0103, allocations: 80.83 kB / 327.1 MB, free: 13.49 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.416e-05/0.01032, allocations: 0 / 327.1 MB, free: 13.49 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.694e-05/0.01033, allocations: 30.56 kB / 327.2 MB, free: 13.45 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 6.51e-07/0.01033, allocations: 0 / 327.2 MB, free: 13.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=3): time 0.0005053/0.01084, allocations: 340.9 kB / 327.5 MB, free: 13.11 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.745e-05/0.01087, allocations: 51.41 kB / 327.5 MB, free: 13.05 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001155/0.01202, allocations: 1.413 MB / 329 MB, free: 11.61 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.479e-05/0.01204, allocations: 25.7 kB / 329 MB, free: 11.58 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002146/0.01225, allocations: 388.4 kB / 329.4 MB, free: 11.2 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.172e-05/0.01227, allocations: 7.906 kB / 329.4 MB, free: 11.19 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.041e-05/0.01231, allocations: 17.72 kB / 329.4 MB, free: 11.17 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.997e-05/0.01238, allocations: 314 kB / 329.7 MB, free: 10.86 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001063/0.01249, allocations: 67.95 kB / 329.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.974e-05/0.01259, allocations: 86.45 kB / 329.8 MB, free: 10.7 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000196/0.01278, allocations: 158.4 kB / 330 MB, free: 10.53 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.01279, allocations: 3.984 kB / 330 MB, free: 10.53 MB / 298.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003253/0.01311, allocations: 272.9 kB / 330.3 MB, free: 10.25 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.01313, allocations: 4 kB / 330.3 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.01314, allocations: 4 kB / 330.3 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.01315, allocations: 0 / 330.3 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001099/0.01326, allocations: 19.97 kB / 330.3 MB, free: 10.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.01326, allocations: 0 / 330.3 MB, free: 10.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.319e-05/0.01336, allocations: 8 kB / 330.3 MB, free: 10.22 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.22e-05/0.01337, allocations: 7.984 kB / 330.3 MB, free: 10.21 MB / 298.7 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.0002354/0.0136, allocations: 341.7 kB / 330.6 MB, free: 9.867 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.888e-05/0.0137, allocations: 99.31 kB / 330.7 MB, free: 9.77 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003742/0.01408, allocations: 277.4 kB / 331 MB, free: 9.488 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.01408, allocations: 4 kB / 331 MB, free: 9.484 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.01409, allocations: 336 / 331 MB, free: 9.484 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.01409, allocations: 0 / 331 MB, free: 9.484 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003188/0.01441, allocations: 430 kB / 331.4 MB, free: 9.023 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.01441, allocations: 3.938 kB / 331.4 MB, free: 9.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.047e-05/0.01446, allocations: 11.98 kB / 331.5 MB, free: 9.008 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.01447, allocations: 7.984 kB / 331.5 MB, free: 9 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.195e-05/0.01448, allocations: 11.98 kB / 331.5 MB, free: 8.988 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.01448, allocations: 0 / 331.5 MB, free: 8.988 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.01448, allocations: 0 / 331.5 MB, free: 8.988 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002868/0.01477, allocations: 323.3 kB / 331.8 MB, free: 8.656 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001858/0.01496, allocations: 159.3 kB / 331.9 MB, free: 8.5 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.469e-05/0.01499, allocations: 0 / 331.9 MB, free: 8.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.116e-05/0.01508, allocations: 4 kB / 331.9 MB, free: 8.496 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.621e-05/0.01512, allocations: 3.984 kB / 331.9 MB, free: 8.492 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.413e-06/0.01512, allocations: 7.938 kB / 332 MB, free: 8.484 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0008359/0.01596, allocations: 1.013 MB / 333 MB, free: 7.461 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.01596, allocations: 0 / 333 MB, free: 7.461 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002295/0.01619, allocations: 60 kB / 333 MB, free: 7.402 MB / 298.7 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.0005911/0.01678, allocations: 0.8797 MB / 333.9 MB, free: 6.492 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002288/0.01701, allocations: 131.8 kB / 334 MB, free: 6.363 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.01701, allocations: 192 / 334 MB, free: 6.363 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.15e-05/0.0171, allocations: 47.97 kB / 334.1 MB, free: 6.316 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004069/0.01751, allocations: 110 kB / 334.2 MB, free: 6.211 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009934/0.02744, allocations: 8.886 MB / 343.1 MB, free: 13.17 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006125/0.02806, allocations: 404.1 kB / 343.5 MB, free: 12.75 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004701/0.02853, allocations: 478.2 kB / 343.9 MB, free: 12.28 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002273/0.02875, allocations: 248.4 kB / 344.2 MB, free: 12.04 MB / 314.7 MB Notification: Performance of SimCode: time 1.132e-06/0.02875, allocations: 0 / 344.2 MB, free: 12.04 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03139/0.06014, allocations: 17.48 MB / 361.7 MB, free: 10.75 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.287/7.347, allocations: 3.984 kB / 361.7 MB, free: 10.75 MB / 330.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","/var/lib/jenkins/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: 9.309072265401483]