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) 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 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001515/0.001515, allocations: 109.9 kB / 16.92 MB, free: 5.875 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.001829/0.001829, allocations: 191.3 kB / 17.85 MB, free: 5.195 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.519/1.519, allocations: 222.9 MB / 241.5 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001888/0.001888, allocations: 45.09 kB / 300.7 MB, free: 5.715 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1539/0.1558, allocations: 49.45 MB / 350.2 MB, free: 4.258 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.005914/0.1618, allocations: 1.886 MB / 352 MB, free: 2.352 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002867/0.1647, allocations: 1.238 MB / 353.3 MB, free: 1.105 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001992/0.1649, allocations: 0 / 353.3 MB, free: 1.105 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00172/0.1667, allocations: 0.5104 MB / 353.8 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004633/0.1672, allocations: 187.4 kB / 354 MB, free: 420 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006816/0.1679, allocations: 175.4 kB / 354.2 MB, free: 244 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000526/0.1685, allocations: 231.1 kB / 354.4 MB, free: 12 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001592/0.1686, allocations: 17.73 kB / 354.4 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003477/0.169, allocations: 127.5 kB / 354.5 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004494/0.1695, allocations: 215.5 kB / 354.7 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.59e-05/0.1695, allocations: 4 kB / 354.7 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003634/0.1699, allocations: 59.97 kB / 354.8 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003319/0.1703, allocations: 267.2 kB / 355.1 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005457/0.1708, allocations: 277.9 kB / 355.3 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001392/0.1722, allocations: 0.7667 MB / 356.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.354e-06/0.1722, allocations: 0 / 356.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.1723, allocations: 0 / 356.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.859e-05/0.1723, allocations: 0 / 356.1 MB, free: 14.29 MB / 302.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.005525/0.1778, allocations: 1.185 MB / 357.3 MB, free: 13.05 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001016/0.178, allocations: 8.031 kB / 357.3 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.745e-05/0.1781, allocations: 30.75 kB / 357.3 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004914/0.1786, allocations: 87.81 kB / 357.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002539/0.1811, allocations: 0.7509 MB / 358.2 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.325e-05/0.1812, allocations: 384 / 358.2 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.398e-05/0.1812, allocations: 384 / 358.2 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005492/0.1818, allocations: 125.7 kB / 358.3 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.054e-05/0.1818, allocations: 0 / 358.3 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.114e-05/0.1819, allocations: 4 kB / 358.3 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/0.1819, allocations: 0 / 358.3 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000608/0.1825, allocations: 143.9 kB / 358.4 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00254/0.1851, allocations: 0.8141 MB / 359.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003405/0.1854, allocations: 90.5 kB / 359.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002773/0.1857, allocations: 80.83 kB / 359.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.978e-05/0.1858, allocations: 4 kB / 359.4 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.056e-05/0.1858, allocations: 30.56 kB / 359.4 MB, free: 10.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 3.036e-06/0.1859, allocations: 0 / 359.4 MB, free: 10.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.00145/0.1873, allocations: 320.5 kB / 359.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.855e-05/0.1874, allocations: 59.39 kB / 359.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003889/0.1913, allocations: 1.405 MB / 361.2 MB, free: 8.938 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.778e-05/0.1913, allocations: 25.7 kB / 361.2 MB, free: 8.906 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005841/0.1919, allocations: 384.4 kB / 361.6 MB, free: 8.527 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.499e-05/0.192, allocations: 11.81 kB / 361.6 MB, free: 8.516 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001491/0.1922, allocations: 21.7 kB / 361.6 MB, free: 8.488 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000224/0.1924, allocations: 309.9 kB / 361.9 MB, free: 8.18 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002756/0.1927, allocations: 75.88 kB / 362 MB, free: 8.105 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003005/0.193, allocations: 86.52 kB / 362.1 MB, free: 8.012 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005326/0.1935, allocations: 154.5 kB / 362.3 MB, free: 7.852 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.583e-06/0.1936, allocations: 8 kB / 362.3 MB, free: 7.844 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.001029/0.1946, allocations: 260.5 kB / 362.5 MB, free: 7.582 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.883e-05/0.1947, allocations: 10.97 kB / 362.5 MB, free: 7.574 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.287e-05/0.1947, allocations: 0 / 362.5 MB, free: 7.574 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.083e-05/0.1947, allocations: 0 / 362.5 MB, free: 7.574 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002876/0.195, allocations: 19.92 kB / 362.5 MB, free: 7.555 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.274e-05/0.195, allocations: 0 / 362.5 MB, free: 7.555 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004168/0.1955, allocations: 20.02 kB / 362.6 MB, free: 7.535 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.379e-05/0.1955, allocations: 0 / 362.6 MB, free: 7.535 MB / 302.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.0006328/0.1962, allocations: 345.6 kB / 362.9 MB, free: 7.188 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003464/0.1965, allocations: 90.86 kB / 363 MB, free: 7.098 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000952/0.1975, allocations: 281.6 kB / 363.3 MB, free: 6.812 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.018e-05/0.1975, allocations: 0 / 363.3 MB, free: 6.812 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.1975, allocations: 3.938 kB / 363.3 MB, free: 6.809 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.1975, allocations: 0 / 363.3 MB, free: 6.809 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000965/0.1985, allocations: 0.5143 MB / 363.8 MB, free: 6.246 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/0.1985, allocations: 0 / 363.8 MB, free: 6.246 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001212/0.1987, allocations: 11.98 kB / 363.8 MB, free: 6.234 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.073e-06/0.1987, allocations: 4 kB / 363.8 MB, free: 6.23 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.218e-05/0.1987, allocations: 11.92 kB / 363.8 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.1987, allocations: 0 / 363.8 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.1987, allocations: 0 / 363.8 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008151/0.1995, allocations: 314.8 kB / 364.1 MB, free: 5.895 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004739/0.2, allocations: 224 kB / 364.3 MB, free: 5.656 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001326/0.2002, allocations: 4 kB / 364.3 MB, free: 5.652 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003379/0.2005, allocations: 7.984 kB / 364.4 MB, free: 5.645 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.493e-05/0.2006, allocations: 4 kB / 364.4 MB, free: 5.641 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.572e-05/0.2006, allocations: 4 kB / 364.4 MB, free: 5.637 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002178/0.2028, allocations: 1.017 MB / 365.4 MB, free: 4.609 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2028, allocations: 3.938 kB / 365.4 MB, free: 4.605 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006316/0.2035, allocations: 68 kB / 365.4 MB, free: 4.539 MB / 302.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.001371/0.2049, allocations: 0.8636 MB / 366.3 MB, free: 3.645 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005866/0.2055, allocations: 135.8 kB / 366.4 MB, free: 3.512 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.2055, allocations: 0 / 366.4 MB, free: 3.512 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000245/0.2057, allocations: 51.95 kB / 366.5 MB, free: 3.461 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009624/0.2067, allocations: 99.92 kB / 366.6 MB, free: 3.367 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2914/0.4981, allocations: 9.375 MB / 376 MB, free: 23.33 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007963/0.499, allocations: 0.9973 MB / 377 MB, free: 22.59 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.001197/0.5002, allocations: 475.4 kB / 377.4 MB, free: 22.57 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00046/0.5006, allocations: 250.8 kB / 377.7 MB, free: 22.38 MB / 302.1 MB Notification: Performance of SimCode: time 1.082e-06/0.5007, allocations: 0 / 377.7 MB, free: 22.38 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.058/0.5587, allocations: 15.87 MB / 393.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.395/8.953, allocations: 10.89 kB / 393.6 MB, free: 13.94 MB / 302.1 MB (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) 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) Reference file matches