Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001422/0.001422, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001944/0.001944, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002063/0.002063, allocations: 59.91 kB / 358.2 MB, free: 13.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2729/0.275, allocations: 50.54 MB / 408.7 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.00312/0.2782, allocations: 1.912 MB / 410.6 MB, free: 15.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00175/0.28, allocations: 1.25 MB / 411.9 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.59e-05/0.2801, allocations: 4 kB / 411.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000977/0.2811, allocations: 0.4985 MB / 412.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002101/0.2813, allocations: 187.4 kB / 412.6 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004284/0.2817, allocations: 179.4 kB / 412.8 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003126/0.282, allocations: 231.1 kB / 413 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.661e-05/0.2822, allocations: 21.67 kB / 413 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002196/0.2824, allocations: 127.5 kB / 413.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002439/0.2826, allocations: 211.5 kB / 413.3 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.458e-05/0.2827, allocations: 7.984 kB / 413.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001446/0.2828, allocations: 67.91 kB / 413.4 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001983/0.283, allocations: 263.3 kB / 413.7 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002248/0.2833, allocations: 281.9 kB / 413.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007745/0.284, allocations: 0.7729 MB / 414.7 MB, free: 11.59 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2841, allocations: 0 / 414.7 MB, free: 11.59 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.2841, allocations: 0 / 414.7 MB, free: 11.59 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.536e-06/0.2841, allocations: 0 / 414.7 MB, free: 11.59 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.002622/0.2867, allocations: 1.209 MB / 415.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.2868, allocations: 8.031 kB / 415.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.293e-05/0.2868, allocations: 34.73 kB / 416 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001864/0.287, allocations: 96.33 kB / 416.1 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001055/0.2881, allocations: 0.7595 MB / 416.8 MB, free: 9.367 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.129e-05/0.2881, allocations: 384 / 416.8 MB, free: 9.367 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.317e-05/0.2881, allocations: 8.312 kB / 416.8 MB, free: 9.359 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002866/0.2884, allocations: 117.7 kB / 416.9 MB, free: 9.238 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.096e-06/0.2884, allocations: 4 kB / 416.9 MB, free: 9.234 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.763e-05/0.2884, allocations: 3.984 kB / 417 MB, free: 9.23 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.2885, allocations: 4 kB / 417 MB, free: 9.227 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003428/0.2888, allocations: 139.9 kB / 417.1 MB, free: 9.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001113/0.2899, allocations: 0.8181 MB / 417.9 MB, free: 8.223 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002006/0.2901, allocations: 82.53 kB / 418 MB, free: 8.133 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001849/0.2903, allocations: 76.89 kB / 418.1 MB, free: 8.055 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.793e-05/0.2904, allocations: 0 / 418.1 MB, free: 8.055 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.373e-05/0.2904, allocations: 30.56 kB / 418.1 MB, free: 8.016 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 1.302e-06/0.2904, allocations: 0 / 418.1 MB, free: 8.016 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008189/0.2912, allocations: 336.9 kB / 418.4 MB, free: 7.68 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.809e-05/0.2913, allocations: 59.39 kB / 418.5 MB, free: 7.609 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001625/0.2929, allocations: 1.401 MB / 419.9 MB, free: 6.188 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.127e-05/0.2929, allocations: 25.7 kB / 419.9 MB, free: 6.156 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003209/0.2933, allocations: 388.4 kB / 420.3 MB, free: 5.773 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.797e-05/0.2933, allocations: 7.953 kB / 420.3 MB, free: 5.766 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.293e-05/0.2934, allocations: 21.7 kB / 420.3 MB, free: 5.738 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001048/0.2935, allocations: 309.9 kB / 420.6 MB, free: 5.43 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001753/0.2937, allocations: 75.94 kB / 420.7 MB, free: 5.355 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001865/0.2939, allocations: 90.69 kB / 420.8 MB, free: 5.258 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003352/0.2942, allocations: 154.4 kB / 420.9 MB, free: 5.098 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.2942, allocations: 0 / 420.9 MB, free: 5.098 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005841/0.2948, allocations: 268.9 kB / 421.2 MB, free: 4.828 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.2948, allocations: 4 kB / 421.2 MB, free: 4.824 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.2949, allocations: 4 kB / 421.2 MB, free: 4.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.2949, allocations: 0 / 421.2 MB, free: 4.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000184/0.2951, allocations: 19.97 kB / 421.2 MB, free: 4.801 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.2951, allocations: 4.094 kB / 421.2 MB, free: 4.797 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000185/0.2953, allocations: 8 kB / 421.2 MB, free: 4.789 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.686e-05/0.2953, allocations: 4 kB / 421.2 MB, free: 4.785 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.0003305/0.2956, allocations: 345.6 kB / 421.6 MB, free: 4.438 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001769/0.2958, allocations: 87.44 kB / 421.7 MB, free: 4.352 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005797/0.2964, allocations: 277.3 kB / 421.9 MB, free: 4.066 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.2964, allocations: 3.938 kB / 421.9 MB, free: 4.062 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.2964, allocations: 3.984 kB / 421.9 MB, free: 4.059 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.2964, allocations: 0 / 421.9 MB, free: 4.059 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004965/0.2969, allocations: 0.5143 MB / 422.5 MB, free: 3.496 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.297, allocations: 0 / 422.5 MB, free: 3.496 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.595e-05/0.297, allocations: 15.98 kB / 422.5 MB, free: 3.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.2971, allocations: 0 / 422.5 MB, free: 3.48 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.103e-05/0.2971, allocations: 3.938 kB / 422.5 MB, free: 3.477 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.015e-06/0.2971, allocations: 4 kB / 422.5 MB, free: 3.473 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2971, allocations: 0 / 422.5 MB, free: 3.473 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000495/0.2976, allocations: 327.4 kB / 422.8 MB, free: 3.137 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003556/0.298, allocations: 228.5 kB / 423 MB, free: 2.895 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.753e-05/0.298, allocations: 7.984 kB / 423 MB, free: 2.887 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001865/0.2982, allocations: 7.984 kB / 423 MB, free: 2.879 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.415e-05/0.2983, allocations: 8 kB / 423 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.448e-06/0.2983, allocations: 3.984 kB / 423 MB, free: 2.867 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001158/0.2995, allocations: 1.017 MB / 424.1 MB, free: 1.84 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2995, allocations: 0 / 424.1 MB, free: 1.84 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003482/0.2998, allocations: 60 kB / 424.1 MB, free: 1.781 MB / 334.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.0009249/0.3007, allocations: 0.8718 MB / 425 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003814/0.3011, allocations: 123.9 kB / 425.1 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.3012, allocations: 0 / 425.1 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000171/0.3013, allocations: 51.95 kB / 425.2 MB, free: 0.707 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006145/0.302, allocations: 108.3 kB / 425.3 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01106/0.313, allocations: 8.778 MB / 434.1 MB, free: 7.688 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006566/0.3137, allocations: 1.005 MB / 435.1 MB, free: 6.66 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007366/0.3145, allocations: 478.2 kB / 435.5 MB, free: 6.188 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003462/0.3148, allocations: 251.4 kB / 435.8 MB, free: 5.941 MB / 350.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3149, allocations: 0 / 435.8 MB, free: 5.941 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03808/0.3529, allocations: 16.11 MB / 451.9 MB, free: 5.98 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.987/9.34, allocations: 20.19 kB / 451.9 MB, free: 5.965 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Batteries_Examples_ShowImpedance.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches