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.001118/0.001118, allocations: 107.4 kB / 16.92 MB, free: 5.66 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.001114/0.001114, allocations: 190.5 kB / 17.85 MB, free: 5.176 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.375/1.375, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 50.8 kB / 300.7 MB, free: 5.781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08951/0.09071, allocations: 49.44 MB / 350.2 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003698/0.09445, allocations: 1.882 MB / 352 MB, free: 2.426 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001898/0.09637, allocations: 1.238 MB / 353.3 MB, free: 1.18 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001405/0.09653, allocations: 3.938 kB / 353.3 MB, free: 1.176 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001144/0.09771, allocations: 0.5066 MB / 353.8 MB, free: 0.668 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002651/0.098, allocations: 187.4 kB / 354 MB, free: 496 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004969/0.0985, allocations: 175.4 kB / 354.2 MB, free: 320 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004012/0.09892, allocations: 232.9 kB / 354.4 MB, free: 88 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001081/0.09903, allocations: 21.66 kB / 354.4 MB, free: 64 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002753/0.09932, allocations: 119.6 kB / 354.5 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003214/0.09965, allocations: 215.5 kB / 354.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.858e-05/0.09969, allocations: 8 kB / 354.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001809/0.09988, allocations: 71.89 kB / 354.8 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001989/0.1001, allocations: 255.3 kB / 355.1 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002687/0.1004, allocations: 281.8 kB / 355.3 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007273/0.1011, allocations: 0.755 MB / 356.1 MB, free: 14.37 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.1011, allocations: 0 / 356.1 MB, free: 14.37 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1011, allocations: 0 / 356.1 MB, free: 14.37 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.033e-05/0.1012, allocations: 0 / 356.1 MB, free: 14.37 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.002928/0.1041, allocations: 1.189 MB / 357.3 MB, free: 13.13 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.1041, allocations: 8.031 kB / 357.3 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.026e-05/0.1042, allocations: 38.75 kB / 357.3 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002121/0.1044, allocations: 87.89 kB / 357.4 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001175/0.1056, allocations: 0.7508 MB / 358.2 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.515e-05/0.1056, allocations: 384 / 358.2 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.108e-05/0.1056, allocations: 4.375 kB / 358.2 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002945/0.1059, allocations: 121.7 kB / 358.3 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.106, allocations: 0 / 358.3 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.642e-05/0.106, allocations: 0 / 358.3 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.106, allocations: 4 kB / 358.3 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000356/0.1064, allocations: 147.9 kB / 358.4 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00133/0.1077, allocations: 0.818 MB / 359.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002471/0.108, allocations: 82.53 kB / 359.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001965/0.1082, allocations: 80.83 kB / 359.4 MB, free: 10.87 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.305e-05/0.1082, allocations: 4 kB / 359.4 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.607e-05/0.1082, allocations: 34.56 kB / 359.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.423e-06/0.1083, allocations: 0 / 359.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.000884/0.1091, allocations: 324.4 kB / 359.8 MB, free: 10.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.76e-05/0.1092, allocations: 51.41 kB / 359.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001768/0.111, allocations: 1.409 MB / 361.2 MB, free: 9.004 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.109e-05/0.111, allocations: 29.7 kB / 361.2 MB, free: 8.969 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003275/0.1113, allocations: 384.4 kB / 361.6 MB, free: 8.59 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.378e-05/0.1114, allocations: 11.8 kB / 361.6 MB, free: 8.578 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.071e-05/0.1114, allocations: 21.72 kB / 361.7 MB, free: 8.551 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.1116, allocations: 313.9 kB / 362 MB, free: 8.238 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001786/0.1118, allocations: 59.95 kB / 362 MB, free: 8.18 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001888/0.112, allocations: 90.52 kB / 362.1 MB, free: 8.082 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000378/0.1124, allocations: 162.4 kB / 362.3 MB, free: 7.914 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.1124, allocations: 0 / 362.3 MB, free: 7.914 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006611/0.113, allocations: 264.5 kB / 362.5 MB, free: 7.648 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.1131, allocations: 4 kB / 362.5 MB, free: 7.645 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.1131, allocations: 0 / 362.5 MB, free: 7.645 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.709e-05/0.1131, allocations: 4 kB / 362.5 MB, free: 7.641 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000189/0.1133, allocations: 15.97 kB / 362.6 MB, free: 7.625 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.92e-06/0.1133, allocations: 0 / 362.6 MB, free: 7.625 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002062/0.1135, allocations: 8 kB / 362.6 MB, free: 7.617 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.802e-05/0.1135, allocations: 11.92 kB / 362.6 MB, free: 7.605 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.0003581/0.1139, allocations: 341.7 kB / 362.9 MB, free: 7.262 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001956/0.1141, allocations: 90.86 kB / 363 MB, free: 7.172 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006411/0.1148, allocations: 281.5 kB / 363.3 MB, free: 6.887 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.413e-06/0.1148, allocations: 4 kB / 363.3 MB, free: 6.883 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.1148, allocations: 0 / 363.3 MB, free: 6.883 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.1148, allocations: 0 / 363.3 MB, free: 6.883 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005314/0.1153, allocations: 0.5143 MB / 363.8 MB, free: 6.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.451e-06/0.1154, allocations: 3.984 kB / 363.8 MB, free: 6.316 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.767e-05/0.1154, allocations: 11.98 kB / 363.8 MB, free: 6.305 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.1155, allocations: 0 / 363.8 MB, free: 6.305 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.169e-05/0.1155, allocations: 4 kB / 363.8 MB, free: 6.301 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/0.1155, allocations: 8 kB / 363.8 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.1155, allocations: 3.938 kB / 363.8 MB, free: 6.289 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005069/0.116, allocations: 318.7 kB / 364.1 MB, free: 5.961 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002849/0.1163, allocations: 224 kB / 364.3 MB, free: 5.723 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.784e-05/0.1164, allocations: 4 kB / 364.4 MB, free: 5.719 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002092/0.1166, allocations: 7.984 kB / 364.4 MB, free: 5.711 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.781e-05/0.1167, allocations: 7.984 kB / 364.4 MB, free: 5.703 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.008e-05/0.1167, allocations: 4 kB / 364.4 MB, free: 5.699 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001348/0.118, allocations: 1.013 MB / 365.4 MB, free: 4.676 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.118, allocations: 0 / 365.4 MB, free: 4.676 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003565/0.1184, allocations: 64 kB / 365.4 MB, free: 4.613 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.000888/0.1193, allocations: 0.8674 MB / 366.3 MB, free: 3.715 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003902/0.1197, allocations: 123.9 kB / 366.4 MB, free: 3.594 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1197, allocations: 192 / 366.4 MB, free: 3.594 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001696/0.1199, allocations: 63.89 kB / 366.5 MB, free: 3.531 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005746/0.1205, allocations: 92.2 kB / 366.6 MB, free: 3.441 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1916/0.3121, allocations: 9.377 MB / 376 MB, free: 23.3 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005245/0.3126, allocations: 0.9988 MB / 377 MB, free: 22.55 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0007691/0.3134, allocations: 479.2 kB / 377.4 MB, free: 22.54 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003132/0.3137, allocations: 250.5 kB / 377.7 MB, free: 22.35 MB / 302.1 MB Notification: Performance of SimCode: time 1.042e-06/0.3137, allocations: 0 / 377.7 MB, free: 22.35 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04223/0.356, allocations: 15.88 MB / 393.5 MB, free: 14.03 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.573/7.929, allocations: 9.172 kB / 393.6 MB, free: 14.02 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_ShowImpedance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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