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.0018/0.0018, allocations: 113.6 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002288/0.002289, allocations: 203.9 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.521/1.521, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002055/0.002055, allocations: 63.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2971/0.2991, allocations: 50.55 MB / 408.7 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.00369/0.3029, allocations: 1.907 MB / 410.7 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002246/0.3052, allocations: 1.253 MB / 411.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001453/0.3053, allocations: 0 / 411.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001208/0.3066, allocations: 0.5024 MB / 412.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003075/0.3069, allocations: 195.4 kB / 412.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005005/0.3074, allocations: 171.4 kB / 412.8 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003904/0.3078, allocations: 223.1 kB / 413 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001012/0.3079, allocations: 25.67 kB / 413 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002334/0.3082, allocations: 123.6 kB / 413.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002787/0.3085, allocations: 219.5 kB / 413.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.69e-05/0.3085, allocations: 4 kB / 413.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000151/0.3087, allocations: 71.84 kB / 413.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002161/0.3089, allocations: 255.3 kB / 413.7 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002691/0.3092, allocations: 281.9 kB / 413.9 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008898/0.3101, allocations: 0.7768 MB / 414.7 MB, free: 11.53 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.3101, allocations: 0 / 414.7 MB, free: 11.53 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.3101, allocations: 0 / 414.7 MB, free: 11.53 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.391e-05/0.3101, allocations: 0 / 414.7 MB, free: 11.53 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.002927/0.3131, allocations: 1.209 MB / 415.9 MB, free: 10.27 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.3131, allocations: 8.031 kB / 415.9 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.133e-05/0.3132, allocations: 34.75 kB / 416 MB, free: 10.22 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002025/0.3134, allocations: 96.31 kB / 416.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001059/0.3144, allocations: 0.7556 MB / 416.8 MB, free: 9.316 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.626e-05/0.3145, allocations: 4.375 kB / 416.8 MB, free: 9.312 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.049e-05/0.3145, allocations: 4.375 kB / 416.8 MB, free: 9.309 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003159/0.3148, allocations: 121.7 kB / 416.9 MB, free: 9.184 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.3148, allocations: 0 / 416.9 MB, free: 9.184 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.733e-05/0.3149, allocations: 7.938 kB / 417 MB, free: 9.176 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.3149, allocations: 0 / 417 MB, free: 9.176 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00035/0.3152, allocations: 143.9 kB / 417.1 MB, free: 9.035 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001194/0.3164, allocations: 0.8142 MB / 417.9 MB, free: 8.172 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002169/0.3167, allocations: 82.52 kB / 418 MB, free: 8.082 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001745/0.3169, allocations: 76.89 kB / 418.1 MB, free: 8.004 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.707e-05/0.3169, allocations: 0 / 418.1 MB, free: 8.004 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.168e-05/0.3169, allocations: 30.56 kB / 418.1 MB, free: 7.965 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.3169, allocations: 4 kB / 418.1 MB, free: 7.961 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008457/0.3178, allocations: 336.9 kB / 418.4 MB, free: 7.625 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.697e-05/0.3178, allocations: 51.41 kB / 418.5 MB, free: 7.562 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001786/0.3196, allocations: 1.405 MB / 419.9 MB, free: 6.137 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.811e-05/0.3197, allocations: 29.7 kB / 419.9 MB, free: 6.102 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003495/0.32, allocations: 384.4 kB / 420.3 MB, free: 5.723 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.051e-05/0.3201, allocations: 11.95 kB / 420.3 MB, free: 5.711 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.799e-05/0.3201, allocations: 13.72 kB / 420.3 MB, free: 5.691 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.3203, allocations: 321.9 kB / 420.6 MB, free: 5.371 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001768/0.3205, allocations: 63.95 kB / 420.7 MB, free: 5.309 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001812/0.3206, allocations: 86.52 kB / 420.8 MB, free: 5.215 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003477/0.321, allocations: 158.4 kB / 420.9 MB, free: 5.051 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.321, allocations: 0 / 420.9 MB, free: 5.051 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006117/0.3216, allocations: 272.9 kB / 421.2 MB, free: 4.777 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.3217, allocations: 4 kB / 421.2 MB, free: 4.773 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.3217, allocations: 4 kB / 421.2 MB, free: 4.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.824e-05/0.3217, allocations: 0 / 421.2 MB, free: 4.77 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002006/0.3219, allocations: 24.08 kB / 421.2 MB, free: 4.746 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.622e-06/0.3219, allocations: 3.938 kB / 421.2 MB, free: 4.742 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001925/0.3221, allocations: 7.984 kB / 421.2 MB, free: 4.734 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.757e-05/0.3221, allocations: 4 kB / 421.2 MB, free: 4.73 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.0003876/0.3225, allocations: 337.6 kB / 421.6 MB, free: 4.391 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000202/0.3227, allocations: 91.42 kB / 421.7 MB, free: 4.301 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006451/0.3234, allocations: 281.5 kB / 421.9 MB, free: 4.012 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.3234, allocations: 0 / 421.9 MB, free: 4.012 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.265e-06/0.3234, allocations: 0 / 421.9 MB, free: 4.012 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.3234, allocations: 3.938 kB / 421.9 MB, free: 4.008 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005908/0.324, allocations: 0.5182 MB / 422.5 MB, free: 3.441 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.379e-06/0.3241, allocations: 4 kB / 422.5 MB, free: 3.438 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.946e-05/0.3241, allocations: 11.98 kB / 422.5 MB, free: 3.426 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.315e-06/0.3241, allocations: 0 / 422.5 MB, free: 3.426 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.045e-05/0.3242, allocations: 0 / 422.5 MB, free: 3.426 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.3242, allocations: 4 kB / 422.5 MB, free: 3.422 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3242, allocations: 0 / 422.5 MB, free: 3.422 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005199/0.3247, allocations: 323.2 kB / 422.8 MB, free: 3.09 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003184/0.325, allocations: 232.4 kB / 423 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.082e-05/0.3251, allocations: 4 kB / 423 MB, free: 2.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001885/0.3253, allocations: 11.98 kB / 423 MB, free: 2.828 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.21e-05/0.3253, allocations: 0 / 423 MB, free: 2.828 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.744e-06/0.3254, allocations: 0 / 423 MB, free: 2.828 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001317/0.3267, allocations: 1.017 MB / 424.1 MB, free: 1.801 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3267, allocations: 0 / 424.1 MB, free: 1.801 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003578/0.3271, allocations: 63.98 kB / 424.1 MB, free: 1.738 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.001007/0.3281, allocations: 0.8751 MB / 425 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003913/0.3285, allocations: 127.9 kB / 425.1 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.3285, allocations: 0 / 425.1 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001752/0.3287, allocations: 55.95 kB / 425.2 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005939/0.3293, allocations: 104.3 kB / 425.3 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01196/0.3412, allocations: 8.783 MB / 434.1 MB, free: 7.629 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007434/0.342, allocations: 0.9969 MB / 435.1 MB, free: 6.609 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007363/0.3428, allocations: 478.2 kB / 435.5 MB, free: 6.137 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003594/0.3432, allocations: 247.4 kB / 435.8 MB, free: 5.895 MB / 350.1 MB Notification: Performance of SimCode: time 1.403e-06/0.3432, allocations: 0 / 435.8 MB, free: 5.895 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04708/0.3903, allocations: 16.12 MB / 451.9 MB, free: 5.926 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.466/9.857, allocations: 16.08 kB / 451.9 MB, free: 5.914 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.1.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