Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008345/0.0008345, allocations: 79.7 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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008332/0.0008332, allocations: 174 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8668/0.8668, allocations: 177.1 MB / 204.3 MB, free: 5.711 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.293e-06/1.293e-06, allocations: 0 / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.103e-05/1.232e-05, allocations: 6.281 kB / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.001949/0.001961, allocations: 1.858 MB / 326.4 MB, free: 14.09 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001137/0.003099, allocations: 1.148 MB / 327.5 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.801e-05/0.003177, allocations: 0 / 327.5 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007588/0.003936, allocations: 0.4905 MB / 328 MB, free: 12.44 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001467/0.004082, allocations: 191.3 kB / 328.2 MB, free: 12.25 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003035/0.004386, allocations: 163.2 kB / 328.4 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002572/0.004643, allocations: 238.9 kB / 328.6 MB, free: 11.86 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.379e-05/0.004717, allocations: 9.797 kB / 328.6 MB, free: 11.85 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002025/0.004919, allocations: 151.6 kB / 328.8 MB, free: 11.7 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000181/0.0051, allocations: 215.6 kB / 329 MB, free: 11.49 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.1e-05/0.005121, allocations: 8 kB / 329 MB, free: 11.48 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001262/0.005247, allocations: 59.91 kB / 329.1 MB, free: 11.42 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001276/0.005375, allocations: 263.3 kB / 329.3 MB, free: 11.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.171e-05/0.005467, allocations: 143.4 kB / 329.5 MB, free: 11.02 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004955/0.005962, allocations: 0.7319 MB / 330.2 MB, free: 10.29 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.614e-06/0.005964, allocations: 4 kB / 330.2 MB, free: 10.29 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.41e-07/0.005965, allocations: 4 kB / 330.2 MB, free: 10.28 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.235e-06/0.005973, allocations: 0 / 330.2 MB, free: 10.28 MB / 298.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.001469/0.007442, allocations: 1.125 MB / 331.3 MB, free: 9.125 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.007477, allocations: 8.031 kB / 331.3 MB, free: 9.117 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.144e-05/0.007508, allocations: 38.69 kB / 331.4 MB, free: 9.07 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000127/0.007635, allocations: 96.31 kB / 331.5 MB, free: 8.977 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009636/0.008599, allocations: 0.7024 MB / 332.2 MB, free: 8.234 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.325e-05/0.008612, allocations: 4.375 kB / 332.2 MB, free: 8.23 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.318e-05/0.008625, allocations: 384 / 332.2 MB, free: 8.23 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00019/0.008815, allocations: 122.2 kB / 332.3 MB, free: 8.105 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.041e-06/0.008821, allocations: 192 / 332.3 MB, free: 8.105 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.204e-05/0.008833, allocations: 4.125 kB / 332.3 MB, free: 8.102 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.008838, allocations: 0 / 332.3 MB, free: 8.102 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002044/0.009042, allocations: 143.9 kB / 332.4 MB, free: 7.961 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006824/0.009724, allocations: 0.7043 MB / 333.1 MB, free: 7.215 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000136/0.00986, allocations: 90.45 kB / 333.2 MB, free: 7.117 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.514e-05/0.009955, allocations: 80.83 kB / 333.3 MB, free: 7.035 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.499e-05/0.00997, allocations: 4 kB / 333.3 MB, free: 7.031 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.686e-05/0.009987, allocations: 30.56 kB / 333.3 MB, free: 6.992 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 9.02e-07/0.009988, allocations: 0 / 333.3 MB, free: 6.992 MB / 298.7 MB Notification: Performance of matching and sorting (n=3): time 0.0004659/0.01045, allocations: 332.8 kB / 333.7 MB, free: 6.66 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.659e-05/0.01048, allocations: 55.41 kB / 333.7 MB, free: 6.594 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001041/0.01152, allocations: 1.401 MB / 335.1 MB, free: 5.172 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.402e-05/0.01154, allocations: 29.7 kB / 335.1 MB, free: 5.137 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002184/0.01175, allocations: 392.4 kB / 335.5 MB, free: 4.75 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.06e-05/0.01178, allocations: 7.953 kB / 335.5 MB, free: 4.742 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.886e-05/0.01181, allocations: 17.72 kB / 335.5 MB, free: 4.719 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.911e-05/0.01188, allocations: 310 kB / 335.9 MB, free: 4.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001007/0.01198, allocations: 67.95 kB / 335.9 MB, free: 4.344 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.941e-05/0.01208, allocations: 86.52 kB / 336 MB, free: 4.25 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001891/0.01227, allocations: 154.4 kB / 336.2 MB, free: 4.09 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.01228, allocations: 0 / 336.2 MB, free: 4.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003241/0.0126, allocations: 280.8 kB / 336.4 MB, free: 3.809 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.01261, allocations: 8 kB / 336.4 MB, free: 3.801 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.01262, allocations: 3.938 kB / 336.4 MB, free: 3.797 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.01263, allocations: 0 / 336.4 MB, free: 3.797 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001091/0.01274, allocations: 24.08 kB / 336.5 MB, free: 3.773 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.418e-06/0.01274, allocations: 0 / 336.5 MB, free: 3.773 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.863e-05/0.01283, allocations: 7.984 kB / 336.5 MB, free: 3.766 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.297e-05/0.01285, allocations: 7.984 kB / 336.5 MB, free: 3.758 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.0002305/0.01308, allocations: 345.6 kB / 336.8 MB, free: 3.41 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.765e-05/0.01317, allocations: 95.36 kB / 336.9 MB, free: 3.316 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003523/0.01353, allocations: 281.6 kB / 337.2 MB, free: 3.031 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.686e-06/0.01353, allocations: 0 / 337.2 MB, free: 3.031 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.01353, allocations: 0 / 337.2 MB, free: 3.031 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.01354, allocations: 0 / 337.2 MB, free: 3.031 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003304/0.01387, allocations: 430 kB / 337.6 MB, free: 2.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.099e-06/0.01387, allocations: 3.938 kB / 337.6 MB, free: 2.566 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.175e-05/0.01391, allocations: 15.98 kB / 337.6 MB, free: 2.551 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.988e-06/0.01392, allocations: 4 kB / 337.6 MB, free: 2.547 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.097e-06/0.01393, allocations: 4 kB / 337.6 MB, free: 2.543 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.01393, allocations: 3.984 kB / 337.6 MB, free: 2.539 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.01393, allocations: 0 / 337.6 MB, free: 2.539 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000276/0.01421, allocations: 319.3 kB / 337.9 MB, free: 2.211 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001754/0.01438, allocations: 155.3 kB / 338.1 MB, free: 2.059 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.472e-05/0.01442, allocations: 0 / 338.1 MB, free: 2.059 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.999e-05/0.01451, allocations: 11.98 kB / 338.1 MB, free: 2.047 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.576e-05/0.01454, allocations: 7.984 kB / 338.1 MB, free: 2.039 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.21e-06/0.01455, allocations: 0 / 338.1 MB, free: 2.039 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001101/0.01565, allocations: 1.017 MB / 339.1 MB, free: 1.008 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01565, allocations: 0 / 339.1 MB, free: 1.008 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002234/0.01587, allocations: 64 kB / 339.2 MB, free: 0.9453 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.0005561/0.01643, allocations: 0.8718 MB / 340.1 MB, free: 48 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002353/0.01666, allocations: 127.9 kB / 340.2 MB, free: 15.92 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.01667, allocations: 0 / 340.2 MB, free: 15.92 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 8.79e-05/0.01675, allocations: 51.97 kB / 340.2 MB, free: 15.87 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003739/0.01713, allocations: 97.69 kB / 340.3 MB, free: 15.77 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009119/0.02625, allocations: 8.886 MB / 349.2 MB, free: 6.738 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002491/0.0265, allocations: 408.1 kB / 349.6 MB, free: 6.32 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003885/0.02688, allocations: 474 kB / 350.1 MB, free: 5.852 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002057/0.02709, allocations: 248.4 kB / 350.3 MB, free: 5.609 MB / 314.7 MB Notification: Performance of SimCode: time 7.52e-07/0.02709, allocations: 0 / 350.3 MB, free: 5.609 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02807/0.05516, allocations: 17.44 MB / 367.8 MB, free: 4.359 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7/7.056, allocations: 8.047 kB / 367.8 MB, free: 4.352 MB / 330.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_ShowImpedance_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_ShowImpedance.fmu > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 8.876227831467986]