Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.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.0009896/0.0009896, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.0009751/0.0009751, allocations: 170 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.8866/0.8866, allocations: 177.1 MB / 204.3 MB, free: 5.719 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.BatteryDischargeCharge,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.871e-05/2.015e-05, allocations: 2.281 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.005015/0.005035, allocations: 5.219 MB / 329.8 MB, free: 10.7 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003819/0.008854, allocations: 2.613 MB / 332.4 MB, free: 8.07 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005585/0.009413, allocations: 27.81 kB / 332.4 MB, free: 8.043 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001249/0.01066, allocations: 0.7502 MB / 333.2 MB, free: 7.289 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008536/0.01152, allocations: 0.5746 MB / 333.7 MB, free: 6.711 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008225/0.01234, allocations: 0.5287 MB / 334.3 MB, free: 6.188 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001384/0.01372, allocations: 1.64 MB / 335.9 MB, free: 4.539 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005328/0.01425, allocations: 379 kB / 336.3 MB, free: 4.148 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009436/0.0152, allocations: 0.8926 MB / 337.2 MB, free: 3.254 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000645/0.01584, allocations: 0.6312 MB / 337.8 MB, free: 2.621 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001651/0.01601, allocations: 136 kB / 337.9 MB, free: 2.488 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003107/0.01632, allocations: 207.9 kB / 338.1 MB, free: 2.285 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003745/0.01669, allocations: 0.6465 MB / 338.8 MB, free: 1.637 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004458/0.01714, allocations: 0.5687 MB / 339.4 MB, free: 1.062 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002011/0.01915, allocations: 2.477 MB / 341.8 MB, free: 14.57 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.01915, allocations: 4 kB / 341.8 MB, free: 14.57 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.01916, allocations: 0 / 341.8 MB, free: 14.57 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.818e-05/0.01921, allocations: 0 / 341.8 MB, free: 14.57 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.00351/0.02272, allocations: 2.553 MB / 344.4 MB, free: 11.97 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.02277, allocations: 12.03 kB / 344.4 MB, free: 11.96 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001325/0.0229, allocations: 143.4 kB / 344.5 MB, free: 11.81 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002835/0.02318, allocations: 239.4 kB / 344.8 MB, free: 11.57 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001758/0.02494, allocations: 1.49 MB / 346.3 MB, free: 10.03 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001136/0.02506, allocations: 151.7 kB / 346.4 MB, free: 9.863 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.813e-05/0.02514, allocations: 84.38 kB / 346.5 MB, free: 9.781 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001947/0.02709, allocations: 1.719 MB / 348.2 MB, free: 7.84 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.754e-05/0.02711, allocations: 0 / 348.2 MB, free: 7.84 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.13e-05/0.02717, allocations: 40 kB / 348.3 MB, free: 7.801 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.533e-05/0.02719, allocations: 20 kB / 348.3 MB, free: 7.781 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001043/0.02823, allocations: 0.7182 MB / 349 MB, free: 7.062 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005011/0.03324, allocations: 4.174 MB / 353.2 MB, free: 2.719 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007579/0.034, allocations: 0.5194 MB / 353.7 MB, free: 2.188 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007952/0.03479, allocations: 362 kB / 354 MB, free: 1.832 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.281e-05/0.03483, allocations: 7.938 kB / 354.1 MB, free: 1.824 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.385e-05/0.03487, allocations: 46.56 kB / 354.1 MB, free: 1.77 MB / 314.7 MB Notification: Performance of pre-optimization done (n=44): time 2.574e-06/0.03487, allocations: 0 / 354.1 MB, free: 1.77 MB / 314.7 MB Notification: Performance of matching and sorting (n=44): time 0.001165/0.03604, allocations: 0.821 MB / 354.9 MB, free: 0.9414 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001242/0.03616, allocations: 415.2 kB / 355.3 MB, free: 448 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002448/0.03861, allocations: 2.779 MB / 358.1 MB, free: 13.61 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.578e-05/0.03865, allocations: 41.7 kB / 358.1 MB, free: 13.57 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004926/0.03915, allocations: 0.8875 MB / 359 MB, free: 12.67 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.848e-05/0.03924, allocations: 166.5 kB / 359.2 MB, free: 12.51 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001574/0.0394, allocations: 118.3 kB / 359.3 MB, free: 12.39 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.367e-05/0.03949, allocations: 337.9 kB / 359.6 MB, free: 12.05 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003275/0.03981, allocations: 257.1 kB / 359.9 MB, free: 11.8 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007981/0.04061, allocations: 0.8839 MB / 360.8 MB, free: 10.71 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006293/0.04124, allocations: 0.6221 MB / 361.4 MB, free: 10.01 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/0.04125, allocations: 4 kB / 361.4 MB, free: 10.01 MB / 330.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001052/0.0423, allocations: 0.8636 MB / 362.3 MB, free: 9.137 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.04232, allocations: 8 kB / 362.3 MB, free: 9.129 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.118e-05/0.04233, allocations: 4 kB / 362.3 MB, free: 9.125 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.069e-05/0.04235, allocations: 12 kB / 362.3 MB, free: 9.113 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003306/0.04268, allocations: 155.7 kB / 362.4 MB, free: 8.961 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.157e-05/0.04269, allocations: 12 kB / 362.4 MB, free: 8.949 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005581/0.04325, allocations: 163.4 kB / 362.6 MB, free: 8.789 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.792e-05/0.0433, allocations: 31.92 kB / 362.6 MB, free: 8.758 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 6 (pulseSeries.on2,pulseSeries.on1,energy2.local_reset,battery2.limIntegrator.local_reset,energy1.local_reset,battery1.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 76 * 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.0005828/0.04388, allocations: 0.5551 MB / 363.2 MB, free: 8.195 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001546/0.04404, allocations: 194.7 kB / 363.4 MB, free: 8.004 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008272/0.04486, allocations: 0.6964 MB / 364.1 MB, free: 7.297 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.04487, allocations: 4 kB / 364.1 MB, free: 7.293 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.04487, allocations: 4 kB / 364.1 MB, free: 7.289 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/0.04488, allocations: 7.969 kB / 364.1 MB, free: 7.281 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00213/0.04701, allocations: 1.898 MB / 366 MB, free: 5.316 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.04701, allocations: 0 / 366 MB, free: 5.316 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000285/0.0473, allocations: 107.9 kB / 366.1 MB, free: 5.211 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.0473, allocations: 4 kB / 366.1 MB, free: 5.207 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.486e-05/0.04733, allocations: 8 kB / 366.1 MB, free: 5.199 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.04733, allocations: 12.08 kB / 366.1 MB, free: 5.188 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/0.04734, allocations: 3.938 kB / 366.1 MB, free: 5.184 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001446/0.04878, allocations: 1.048 MB / 367.2 MB, free: 4.105 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004635/0.04925, allocations: 342.6 kB / 367.5 MB, free: 3.77 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001075/0.04935, allocations: 12 kB / 367.5 MB, free: 3.758 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005687/0.04992, allocations: 143.9 kB / 367.7 MB, free: 3.617 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004153/0.05034, allocations: 159.7 kB / 367.8 MB, free: 3.461 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.862e-05/0.05037, allocations: 20 kB / 367.8 MB, free: 3.441 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001882/0.05225, allocations: 1.967 MB / 369.8 MB, free: 1.453 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.05225, allocations: 4 kB / 369.8 MB, free: 1.449 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007852/0.05303, allocations: 311.4 kB / 370.1 MB, free: 1.145 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (battery1.limIntegrator.y,energy1.y,battery2.limIntegrator.y,battery2.capacitor[1].v,battery2.capacitor[2].v,energy2.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 44 * 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 Backend phase and start with SimCode phase: time 0.002402/0.05543, allocations: 2.012 MB / 372.1 MB, free: 15.31 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008986/0.05633, allocations: 0.5696 MB / 372.7 MB, free: 14.74 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/0.05634, allocations: 4 kB / 372.7 MB, free: 14.73 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004084/0.05675, allocations: 332.6 kB / 373 MB, free: 14.41 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001059/0.05781, allocations: 312.5 kB / 373.3 MB, free: 14.11 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02304/0.08085, allocations: 17.36 MB / 390.7 MB, free: 12.36 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006325/0.08148, allocations: 0.8535 MB / 391.5 MB, free: 11.46 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0006196/0.0821, allocations: 287.1 kB / 391.8 MB, free: 11.18 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006634/0.08276, allocations: 0.7073 MB / 392.5 MB, free: 10.47 MB / 362.7 MB Notification: Performance of SimCode: time 2.094e-06/0.08277, allocations: 7.938 kB / 392.5 MB, free: 10.46 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0567/0.1395, allocations: 41.81 MB / 434.3 MB, free: 0.9336 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.876/8.016, allocations: 3.859 kB / 434.3 MB, free: 0.9297 MB / 394.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge_fmu --startTime=0 --stopTime=3600 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge.fmu > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 11.948483584448695]