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.00159/0.001591, allocations: 114.1 kB / 17.07 MB, free: 6.016 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.001841/0.001841, allocations: 191 kB / 18 MB, free: 5.098 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.305/1.305, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001072/0.001072, allocations: 47.91 kB / 350.8 MB, free: 3.789 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2797/0.2807, allocations: 49.44 MB / 400.2 MB, free: 8.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003062/0.2838, allocations: 1.9 MB / 402.1 MB, free: 6.941 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001621/0.2855, allocations: 1.234 MB / 403.3 MB, free: 5.699 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.982e-05/0.2856, allocations: 4 kB / 403.4 MB, free: 5.695 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009328/0.2865, allocations: 0.5024 MB / 403.9 MB, free: 5.191 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001912/0.2867, allocations: 195.4 kB / 404 MB, free: 5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004023/0.2871, allocations: 171.3 kB / 404.2 MB, free: 4.832 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002879/0.2874, allocations: 227.1 kB / 404.4 MB, free: 4.609 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.45e-05/0.2875, allocations: 29.67 kB / 404.5 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001807/0.2877, allocations: 127.5 kB / 404.6 MB, free: 4.457 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002485/0.288, allocations: 211.5 kB / 404.8 MB, free: 4.25 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.421e-05/0.288, allocations: 4 kB / 404.8 MB, free: 4.246 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001364/0.2882, allocations: 67.89 kB / 404.9 MB, free: 4.18 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001933/0.2884, allocations: 263.3 kB / 405.1 MB, free: 3.922 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002312/0.2886, allocations: 281.9 kB / 405.4 MB, free: 3.645 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007124/0.2893, allocations: 0.7729 MB / 406.2 MB, free: 2.871 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.2893, allocations: 0 / 406.2 MB, free: 2.871 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.2893, allocations: 0 / 406.2 MB, free: 2.871 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.614e-06/0.2893, allocations: 0 / 406.2 MB, free: 2.871 MB / 318.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.002432/0.2918, allocations: 1.213 MB / 407.4 MB, free: 1.605 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/0.2918, allocations: 8.031 kB / 407.4 MB, free: 1.598 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.282e-05/0.2919, allocations: 34.75 kB / 407.4 MB, free: 1.555 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001671/0.2921, allocations: 100.3 kB / 407.5 MB, free: 1.457 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009366/0.293, allocations: 0.7556 MB / 408.3 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.058e-05/0.293, allocations: 4.375 kB / 408.3 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2e-05/0.293, allocations: 384 / 408.3 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002679/0.2933, allocations: 125.7 kB / 408.4 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.712e-06/0.2933, allocations: 0 / 408.4 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.456e-05/0.2934, allocations: 0 / 408.4 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.2934, allocations: 0 / 408.4 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003433/0.2937, allocations: 155.9 kB / 408.6 MB, free: 372 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001058/0.2948, allocations: 0.8142 MB / 409.4 MB, free: 15.5 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001971/0.295, allocations: 86.52 kB / 409.5 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001722/0.2952, allocations: 72.89 kB / 409.5 MB, free: 15.33 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.525e-05/0.2952, allocations: 4 kB / 409.5 MB, free: 15.33 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.371e-05/0.2952, allocations: 34.56 kB / 409.6 MB, free: 15.29 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.2952, allocations: 0 / 409.6 MB, free: 15.29 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0007996/0.296, allocations: 332.9 kB / 409.9 MB, free: 14.95 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.262e-05/0.2961, allocations: 51.41 kB / 409.9 MB, free: 14.89 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00153/0.2976, allocations: 1.409 MB / 411.4 MB, free: 13.46 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.152e-05/0.2976, allocations: 29.7 kB / 411.4 MB, free: 13.42 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003103/0.298, allocations: 388.4 kB / 411.8 MB, free: 13.04 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.522e-05/0.298, allocations: 7.906 kB / 411.8 MB, free: 13.03 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.71e-05/0.2981, allocations: 25.7 kB / 411.8 MB, free: 13 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.766e-05/0.2981, allocations: 309.9 kB / 412.1 MB, free: 12.69 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001675/0.2983, allocations: 67.94 kB / 412.2 MB, free: 12.62 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001762/0.2985, allocations: 86.52 kB / 412.2 MB, free: 12.53 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003225/0.2988, allocations: 158.4 kB / 412.4 MB, free: 12.37 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2988, allocations: 0 / 412.4 MB, free: 12.37 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005404/0.2994, allocations: 272.9 kB / 412.7 MB, free: 12.09 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.2994, allocations: 4 kB / 412.7 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.2994, allocations: 4 kB / 412.7 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.645e-05/0.2995, allocations: 3.938 kB / 412.7 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001807/0.2996, allocations: 15.98 kB / 412.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.561e-06/0.2997, allocations: 0 / 412.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001861/0.2998, allocations: 7.984 kB / 412.7 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.689e-05/0.2999, allocations: 4 kB / 412.7 MB, free: 12.05 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.0003159/0.3002, allocations: 341.7 kB / 413 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001774/0.3004, allocations: 95.38 kB / 413.1 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005936/0.301, allocations: 285.5 kB / 413.4 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.301, allocations: 0 / 413.4 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.301, allocations: 0 / 413.4 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.301, allocations: 0 / 413.4 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005266/0.3015, allocations: 0.5143 MB / 413.9 MB, free: 10.76 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.3016, allocations: 0 / 413.9 MB, free: 10.76 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.319e-05/0.3016, allocations: 11.98 kB / 413.9 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-06/0.3017, allocations: 0 / 413.9 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.178e-05/0.3017, allocations: 8 kB / 413.9 MB, free: 10.74 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.3017, allocations: 0 / 413.9 MB, free: 10.74 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.3017, allocations: 4 kB / 413.9 MB, free: 10.74 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004923/0.3022, allocations: 331.2 kB / 414.3 MB, free: 10.4 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003376/0.3025, allocations: 228.5 kB / 414.5 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.692e-05/0.3026, allocations: 0 / 414.5 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000188/0.3028, allocations: 4 kB / 414.5 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.147e-05/0.3029, allocations: 11.98 kB / 414.5 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.695e-06/0.3029, allocations: 0 / 414.5 MB, free: 10.14 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001111/0.304, allocations: 1.013 MB / 415.5 MB, free: 9.117 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.304, allocations: 0 / 415.5 MB, free: 9.117 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003292/0.3043, allocations: 64 kB / 415.6 MB, free: 9.055 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.0008866/0.3052, allocations: 0.8912 MB / 416.5 MB, free: 8.133 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003749/0.3056, allocations: 115.9 kB / 416.6 MB, free: 8.02 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.3056, allocations: 0 / 416.6 MB, free: 8.02 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001769/0.3058, allocations: 60.14 kB / 416.6 MB, free: 7.961 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005609/0.3064, allocations: 96.27 kB / 416.7 MB, free: 7.863 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01027/0.3167, allocations: 8.79 MB / 425.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005765/0.3173, allocations: 1.001 MB / 426.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006919/0.318, allocations: 478.3 kB / 427 MB, free: 13.44 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003214/0.3183, allocations: 255.3 kB / 427.3 MB, free: 13.19 MB / 350.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3183, allocations: 0 / 427.3 MB, free: 13.19 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03731/0.3556, allocations: 16.16 MB / 443.4 MB, free: 13.19 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.94/9.296, allocations: 8.578 kB / 443.4 MB, free: 13.18 MB / 366.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