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.001277/0.001277, allocations: 113 kB / 17.07 MB, free: 6.008 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.001374/0.001374, allocations: 189.4 kB / 18 MB, free: 5.09 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.406/1.406, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00155/0.00155, allocations: 47.91 kB / 350.8 MB, free: 3.797 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3564/0.358, allocations: 49.44 MB / 400.2 MB, free: 8.438 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.005056/0.3631, allocations: 1.897 MB / 402.1 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002867/0.366, allocations: 1.234 MB / 403.4 MB, free: 5.695 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001911/0.3662, allocations: 4 kB / 403.4 MB, free: 5.691 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001636/0.3678, allocations: 0.5024 MB / 403.9 MB, free: 5.188 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004145/0.3683, allocations: 191.4 kB / 404 MB, free: 5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006149/0.369, allocations: 167.4 kB / 404.2 MB, free: 4.836 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000485/0.3695, allocations: 235.1 kB / 404.4 MB, free: 4.605 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001179/0.3696, allocations: 25.69 kB / 404.5 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002765/0.3699, allocations: 127.5 kB / 404.6 MB, free: 4.457 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003879/0.3703, allocations: 207.5 kB / 404.8 MB, free: 4.254 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.599e-05/0.3703, allocations: 8 kB / 404.8 MB, free: 4.246 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000224/0.3706, allocations: 71.89 kB / 404.9 MB, free: 4.176 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003036/0.3709, allocations: 259.3 kB / 405.1 MB, free: 3.922 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003534/0.3712, allocations: 273.9 kB / 405.4 MB, free: 3.652 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001177/0.3724, allocations: 0.7846 MB / 406.2 MB, free: 2.867 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.3724, allocations: 0 / 406.2 MB, free: 2.867 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.3724, allocations: 0 / 406.2 MB, free: 2.867 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.827e-06/0.3725, allocations: 0 / 406.2 MB, free: 2.867 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.003714/0.3762, allocations: 1.209 MB / 407.4 MB, free: 1.605 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.81e-05/0.3762, allocations: 12.03 kB / 407.4 MB, free: 1.594 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.631e-05/0.3763, allocations: 34.75 kB / 407.4 MB, free: 1.551 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002807/0.3766, allocations: 92.36 kB / 407.5 MB, free: 1.461 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001449/0.3781, allocations: 0.7634 MB / 408.3 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.675e-05/0.3781, allocations: 4.375 kB / 408.3 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.191e-05/0.3781, allocations: 384 / 408.3 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004056/0.3785, allocations: 121.7 kB / 408.4 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.3786, allocations: 0 / 408.4 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.938e-05/0.3786, allocations: 0 / 408.4 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.648e-06/0.3786, allocations: 4 kB / 408.4 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005313/0.3792, allocations: 139.9 kB / 408.5 MB, free: 384 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001612/0.3808, allocations: 0.822 MB / 409.4 MB, free: 15.5 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003074/0.3811, allocations: 90.45 kB / 409.5 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000279/0.3814, allocations: 72.91 kB / 409.5 MB, free: 15.33 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.199e-05/0.3814, allocations: 0 / 409.5 MB, free: 15.33 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.461e-05/0.3815, allocations: 34.55 kB / 409.6 MB, free: 15.29 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 3.877e-06/0.3815, allocations: 11.92 kB / 409.6 MB, free: 15.28 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.001234/0.3828, allocations: 325 kB / 409.9 MB, free: 14.95 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.626e-05/0.3828, allocations: 55.34 kB / 409.9 MB, free: 14.89 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002616/0.3855, allocations: 1.409 MB / 411.4 MB, free: 13.45 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.371e-05/0.3855, allocations: 25.7 kB / 411.4 MB, free: 13.42 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005221/0.386, allocations: 388.4 kB / 411.8 MB, free: 13.04 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.572e-05/0.3861, allocations: 11.91 kB / 411.8 MB, free: 13.03 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.339e-05/0.3862, allocations: 21.7 kB / 411.8 MB, free: 13 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001969/0.3864, allocations: 313.9 kB / 412.1 MB, free: 12.69 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002703/0.3867, allocations: 63.95 kB / 412.2 MB, free: 12.62 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002794/0.387, allocations: 86.52 kB / 412.2 MB, free: 12.53 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005404/0.3875, allocations: 162.4 kB / 412.4 MB, free: 12.36 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.3875, allocations: 0 / 412.4 MB, free: 12.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0008883/0.3884, allocations: 265 kB / 412.7 MB, free: 12.1 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/0.3885, allocations: 8.094 kB / 412.7 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.866e-06/0.3885, allocations: 3.984 kB / 412.7 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.856e-05/0.3885, allocations: 0 / 412.7 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000252/0.3888, allocations: 15.98 kB / 412.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.3888, allocations: 0 / 412.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003118/0.3891, allocations: 15.98 kB / 412.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.112e-05/0.3892, allocations: 0 / 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.0005423/0.3897, allocations: 337.6 kB / 413 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002741/0.39, allocations: 95.38 kB / 413.1 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009163/0.3909, allocations: 277.3 kB / 413.4 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.952e-06/0.3909, allocations: 336 / 413.4 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.391, allocations: 8 kB / 413.4 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.391, allocations: 0 / 413.4 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008502/0.3918, allocations: 0.5182 MB / 413.9 MB, free: 10.76 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.3918, allocations: 0 / 413.9 MB, free: 10.76 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001261/0.392, allocations: 15.97 kB / 413.9 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.392, allocations: 3.938 kB / 413.9 MB, free: 10.74 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.826e-05/0.392, allocations: 4 kB / 414 MB, free: 10.74 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.392, allocations: 0 / 414 MB, free: 10.74 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.392, allocations: 0 / 414 MB, free: 10.74 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007639/0.3928, allocations: 331.2 kB / 414.3 MB, free: 10.4 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000425/0.3933, allocations: 224.5 kB / 414.5 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.394e-05/0.3934, allocations: 0 / 414.5 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003094/0.3937, allocations: 7.984 kB / 414.5 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.755e-05/0.3938, allocations: 7.984 kB / 414.5 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.519e-05/0.3938, allocations: 4 kB / 414.5 MB, free: 10.14 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001979/0.3958, allocations: 1.013 MB / 415.5 MB, free: 9.117 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3958, allocations: 4 kB / 415.5 MB, free: 9.113 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005538/0.3964, allocations: 67.94 kB / 415.6 MB, free: 9.047 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.001354/0.3977, allocations: 0.8757 MB / 416.5 MB, free: 8.141 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005716/0.3983, allocations: 127.8 kB / 416.6 MB, free: 8.016 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3983, allocations: 0 / 416.6 MB, free: 8.016 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002458/0.3986, allocations: 51.95 kB / 416.6 MB, free: 7.965 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008708/0.3995, allocations: 104.4 kB / 416.7 MB, free: 7.859 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0178/0.4173, 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.001024/0.4183, allocations: 1.001 MB / 426.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0009991/0.4194, allocations: 474.2 kB / 427 MB, free: 13.44 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005184/0.4199, allocations: 259.3 kB / 427.3 MB, free: 13.18 MB / 350.1 MB Notification: Performance of SimCode: time 7.81e-07/0.4199, allocations: 4 kB / 427.3 MB, free: 13.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06085/0.4808, allocations: 16.15 MB / 443.4 MB, free: 13.19 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.318/9.799, allocations: 4.641 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 & /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