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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008127/0.0008127, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008405/0.0008405, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8674/0.8674, allocations: 173.3 MB / 200.4 MB, free: 9.449 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 318.4 MB, free: 6.273 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.118e-05/2.277e-05, allocations: 2.281 kB / 318.4 MB, free: 6.27 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002433/0.002456, allocations: 1.831 MB / 320.2 MB, free: 4.426 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001233/0.003688, allocations: 1.125 MB / 321.4 MB, free: 3.293 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.843e-05/0.003787, allocations: 4 kB / 321.4 MB, free: 3.289 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009765/0.004763, allocations: 498.2 kB / 321.9 MB, free: 2.801 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001646/0.004928, allocations: 199.3 kB / 322.1 MB, free: 2.605 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003185/0.005246, allocations: 163.2 kB / 322.2 MB, free: 2.445 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003206/0.005567, allocations: 231 kB / 322.4 MB, free: 2.219 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.977e-05/0.005647, allocations: 13.8 kB / 322.5 MB, free: 2.203 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001728/0.00582, allocations: 147.6 kB / 322.6 MB, free: 2.059 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001988/0.006018, allocations: 211.7 kB / 322.8 MB, free: 1.852 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.079e-05/0.006039, allocations: 8 kB / 322.8 MB, free: 1.844 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001178/0.006157, allocations: 67.78 kB / 322.9 MB, free: 1.777 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001383/0.006295, allocations: 275.3 kB / 323.2 MB, free: 1.508 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001005/0.006396, allocations: 139.5 kB / 323.3 MB, free: 1.371 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005166/0.006912, allocations: 0.7319 MB / 324 MB, free: 0.6367 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.706e-06/0.006915, allocations: 0 / 324 MB, free: 0.6367 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.006916, allocations: 0 / 324 MB, free: 0.6367 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.235e-06/0.006924, allocations: 0 / 324 MB, free: 0.6367 MB / 282.7 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.001471/0.008395, allocations: 1.133 MB / 325.2 MB, free: 15.47 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.00843, allocations: 8.922 kB / 325.2 MB, free: 15.46 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.932e-05/0.008459, allocations: 30.75 kB / 325.2 MB, free: 15.43 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001132/0.008573, allocations: 104.3 kB / 325.3 MB, free: 15.32 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006096/0.009182, allocations: 0.7024 MB / 326 MB, free: 14.58 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.093e-05/0.009193, allocations: 384 / 326 MB, free: 14.58 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.285e-05/0.009206, allocations: 384 / 326 MB, free: 14.58 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001856/0.009392, allocations: 122.1 kB / 326.1 MB, free: 14.46 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.773e-06/0.009398, allocations: 192 / 326.1 MB, free: 14.46 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/0.00941, allocations: 4.125 kB / 326.1 MB, free: 14.45 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.009414, allocations: 0 / 326.1 MB, free: 14.45 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001953/0.009609, allocations: 143.9 kB / 326.3 MB, free: 14.31 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006413/0.01025, allocations: 0.716 MB / 327 MB, free: 13.55 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001296/0.01038, allocations: 86.45 kB / 327.1 MB, free: 13.46 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001015/0.01048, allocations: 80.83 kB / 327.1 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.328e-05/0.01049, allocations: 3.984 kB / 327.1 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.927e-05/0.01051, allocations: 34.56 kB / 327.2 MB, free: 13.33 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 7.42e-07/0.01051, allocations: 0 / 327.2 MB, free: 13.33 MB / 298.7 MB Notification: Performance of matching and sorting (n=3): time 0.0004655/0.01098, allocations: 329 kB / 327.5 MB, free: 13 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.712e-05/0.01101, allocations: 51.41 kB / 327.5 MB, free: 12.94 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001022/0.01203, allocations: 1.409 MB / 329 MB, free: 11.51 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.455e-05/0.01204, allocations: 25.7 kB / 329 MB, free: 11.48 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002044/0.01225, allocations: 388.4 kB / 329.4 MB, free: 11.1 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.947e-05/0.01227, allocations: 7.906 kB / 329.4 MB, free: 11.09 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001527/0.01242, allocations: 29.64 kB / 329.4 MB, free: 11.05 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.691e-05/0.01249, allocations: 306 kB / 329.7 MB, free: 10.75 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.455e-05/0.01258, allocations: 67.94 kB / 329.8 MB, free: 10.68 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.585e-05/0.01268, allocations: 94.45 kB / 329.9 MB, free: 10.58 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001864/0.01286, allocations: 150.5 kB / 330 MB, free: 10.43 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.01287, allocations: 0 / 330 MB, free: 10.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003112/0.01318, allocations: 276.9 kB / 330.3 MB, free: 10.15 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.226e-05/0.01319, allocations: 11.94 kB / 330.3 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.01319, allocations: 0 / 330.3 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.768e-06/0.0132, allocations: 0 / 330.3 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001024/0.01331, allocations: 19.98 kB / 330.3 MB, free: 10.12 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.169e-06/0.01331, allocations: 0 / 330.3 MB, free: 10.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.144e-05/0.0134, allocations: 11.98 kB / 330.3 MB, free: 10.11 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.137e-06/0.01341, allocations: 0 / 330.3 MB, free: 10.11 MB / 298.7 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.0002235/0.01364, allocations: 341.6 kB / 330.6 MB, free: 9.762 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.533e-05/0.01373, allocations: 99.31 kB / 330.7 MB, free: 9.664 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003313/0.01406, allocations: 273.7 kB / 331 MB, free: 9.387 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.01407, allocations: 4.031 kB / 331 MB, free: 9.383 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.01407, allocations: 7.938 kB / 331 MB, free: 9.375 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.01407, allocations: 3.984 kB / 331 MB, free: 9.371 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003076/0.01438, allocations: 430 kB / 331.4 MB, free: 8.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.01438, allocations: 3.938 kB / 331.5 MB, free: 8.906 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.08e-05/0.01443, allocations: 15.97 kB / 331.5 MB, free: 8.891 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.482e-06/0.01443, allocations: 0 / 331.5 MB, free: 8.891 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.328e-06/0.01444, allocations: 4 kB / 331.5 MB, free: 8.887 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.01444, allocations: 0 / 331.5 MB, free: 8.887 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.01444, allocations: 0 / 331.5 MB, free: 8.887 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002661/0.0147, allocations: 319.4 kB / 331.8 MB, free: 8.559 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000178/0.01488, allocations: 159.3 kB / 331.9 MB, free: 8.402 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.305e-05/0.01492, allocations: 0 / 331.9 MB, free: 8.402 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.053e-05/0.01501, allocations: 7.984 kB / 331.9 MB, free: 8.395 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.16e-05/0.01504, allocations: 4 kB / 332 MB, free: 8.391 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.45e-06/0.01504, allocations: 7.922 kB / 332 MB, free: 8.383 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0007844/0.01583, allocations: 1.013 MB / 333 MB, free: 7.359 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01583, allocations: 3.938 kB / 333 MB, free: 7.355 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002394/0.01607, allocations: 64 kB / 333 MB, free: 7.293 MB / 298.7 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.0005953/0.01666, allocations: 0.8758 MB / 333.9 MB, free: 6.387 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002196/0.01688, allocations: 131.8 kB / 334 MB, free: 6.258 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.01688, allocations: 0 / 334 MB, free: 6.258 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.963e-05/0.01697, allocations: 56.14 kB / 334.1 MB, free: 6.203 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003754/0.01735, allocations: 103.1 kB / 334.2 MB, free: 6.105 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009078/0.02643, allocations: 8.89 MB / 343.1 MB, free: 13.07 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002568/0.02668, allocations: 400.1 kB / 343.5 MB, free: 12.65 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003839/0.02707, allocations: 478.3 kB / 343.9 MB, free: 12.18 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002206/0.02729, allocations: 252.4 kB / 344.2 MB, free: 11.93 MB / 314.7 MB Notification: Performance of SimCode: time 5.91e-07/0.02729, allocations: 0 / 344.2 MB, free: 11.93 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02693/0.05422, allocations: 17.48 MB / 361.7 MB, free: 10.65 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.306/7.36, allocations: 6.953 kB / 361.7 MB, free: 10.65 MB / 330.7 MB " [Timeout remaining time 653] (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 --stepSize=0.0001 --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) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.191332852467895]