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.00185/0.00185, allocations: 84.47 kB / 20.68 MB, free: 1.023 MB / 14.72 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.002178/0.002178, allocations: 164.3 kB / 23.95 MB, free: 4.16 MB / 14.72 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 1.469/1.469, allocations: 177.2 MB / 204.3 MB, free: 9.18 MB / 190.1 MB " [Timeout remaining time 178] 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: translateModel(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=36000,variableFilter="time|battery1.limIntegrator.y|battery2.capacitor.1..v|battery2.capacitor.2..v|battery2.limIntegrator.y|energy1.y|energy2.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") translateModel(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=36000,variableFilter="time|battery1.limIntegrator.y|battery2.capacitor.1..v|battery2.capacitor.2..v|battery2.limIntegrator.y|energy1.y|energy2.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.733e-06/1.733e-06, allocations: 3.938 kB / 325 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.255e-05/2.429e-05, allocations: 5.656 kB / 325.1 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007593/0.007617, allocations: 5.229 MB / 330.3 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005525/0.01314, allocations: 2.608 MB / 332.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008178/0.01396, allocations: 29.41 kB / 332.9 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001921/0.01588, allocations: 0.7431 MB / 333.7 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001561/0.01744, allocations: 0.5898 MB / 334.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001351/0.01879, allocations: 0.5099 MB / 334.8 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002127/0.02092, allocations: 1.653 MB / 336.4 MB, free: 8.867 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006841/0.0216, allocations: 379.8 kB / 336.8 MB, free: 8.605 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001293/0.0229, allocations: 0.8938 MB / 337.7 MB, free: 8.039 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009172/0.02381, allocations: 0.6271 MB / 338.3 MB, free: 7.691 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002036/0.02402, allocations: 133.5 kB / 338.4 MB, free: 7.691 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004849/0.0245, allocations: 214.2 kB / 338.6 MB, free: 7.543 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006531/0.02516, allocations: 0.6504 MB / 339.3 MB, free: 6.891 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007088/0.02586, allocations: 0.5687 MB / 339.9 MB, free: 6.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00318/0.02904, allocations: 2.469 MB / 342.3 MB, free: 3.844 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.593e-06/0.02905, allocations: 8 kB / 342.3 MB, free: 3.836 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.02905, allocations: 0 / 342.3 MB, free: 3.836 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.7e-05/0.0291, allocations: 0 / 342.3 MB, free: 3.836 MB / 302.1 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.005053/0.03415, allocations: 2.545 MB / 344.9 MB, free: 1.238 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.0342, allocations: 12.03 kB / 344.9 MB, free: 1.227 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003844/0.03458, allocations: 231.5 kB / 345.1 MB, free: 1 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002493/0.03708, allocations: 1.508 MB / 346.6 MB, free: 15.44 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001597/0.03723, allocations: 143.7 kB / 346.8 MB, free: 15.28 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001313/0.03737, allocations: 84.38 kB / 346.9 MB, free: 15.2 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002242/0.03961, allocations: 1.709 MB / 348.6 MB, free: 13.27 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.112e-05/0.03963, allocations: 11.88 kB / 348.6 MB, free: 13.25 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.924e-05/0.03973, allocations: 44 kB / 348.6 MB, free: 13.21 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.013e-05/0.03975, allocations: 23.94 kB / 348.6 MB, free: 13.19 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00146/0.04121, allocations: 0.7182 MB / 349.4 MB, free: 12.47 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006624/0.04783, allocations: 4.039 MB / 353.4 MB, free: 8.277 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001219/0.04905, allocations: 0.5218 MB / 353.9 MB, free: 7.746 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007955/0.04985, allocations: 364.6 kB / 354.3 MB, free: 7.391 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.756e-05/0.04989, allocations: 8 kB / 354.3 MB, free: 7.383 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.42e-05/0.04994, allocations: 46.5 kB / 354.3 MB, free: 7.328 MB / 318.1 MB Notification: Performance of pre-optimization done (n=44): time 2.304e-06/0.04994, allocations: 0 / 354.3 MB, free: 7.328 MB / 318.1 MB Notification: Performance of matching and sorting (n=44): time 0.001965/0.05191, allocations: 0.8171 MB / 355.1 MB, free: 6.504 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002861/0.05219, allocations: 419.2 kB / 355.6 MB, free: 5.996 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003894/0.05609, allocations: 2.727 MB / 358.3 MB, free: 3.223 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001017/0.05619, allocations: 37.7 kB / 358.3 MB, free: 3.18 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009099/0.0571, allocations: 0.9067 MB / 359.2 MB, free: 2.266 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001598/0.05726, allocations: 162.6 kB / 359.4 MB, free: 2.105 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002384/0.0575, allocations: 126.2 kB / 359.5 MB, free: 1.977 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001775/0.05767, allocations: 326 kB / 359.8 MB, free: 1.652 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005743/0.05825, allocations: 257.1 kB / 360.1 MB, free: 1.402 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001058/0.05931, allocations: 0.8917 MB / 361 MB, free: 308 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001225/0.06053, allocations: 0.6181 MB / 361.6 MB, free: 15.61 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.86e-06/0.06054, allocations: 4 kB / 361.6 MB, free: 15.6 MB / 334.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001693/0.06223, allocations: 0.8514 MB / 362.4 MB, free: 14.74 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.221e-05/0.06225, allocations: 12.56 kB / 362.5 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.06226, allocations: 8 kB / 362.5 MB, free: 14.72 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.74e-05/0.06229, allocations: 8 kB / 362.5 MB, free: 14.71 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006086/0.0629, allocations: 159.7 kB / 362.6 MB, free: 14.56 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.824e-05/0.06291, allocations: 11.98 kB / 362.6 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001036/0.06395, allocations: 155.4 kB / 362.8 MB, free: 14.39 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.398e-05/0.06401, allocations: 32 kB / 362.8 MB, free: 14.36 MB / 334.1 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.0008302/0.06485, allocations: 0.5561 MB / 363.4 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002597/0.0651, allocations: 186.8 kB / 363.6 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001438/0.06654, allocations: 0.6958 MB / 364.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/0.06655, allocations: 4 kB / 364.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.06656, allocations: 0 / 364.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.155e-06/0.06656, allocations: 3.984 kB / 364.3 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003242/0.06981, allocations: 1.792 MB / 366.1 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/0.06981, allocations: 4 kB / 366.1 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000508/0.07032, allocations: 107.9 kB / 366.2 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.068e-06/0.07032, allocations: 0 / 366.2 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.874e-05/0.07037, allocations: 12 kB / 366.2 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.07037, allocations: 0 / 366.2 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.07038, allocations: 4 kB / 366.2 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001867/0.07225, allocations: 1.052 MB / 367.2 MB, free: 9.852 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006926/0.07294, allocations: 334.6 kB / 367.6 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001878/0.07313, allocations: 19.98 kB / 367.6 MB, free: 9.504 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001065/0.07419, allocations: 135.8 kB / 367.7 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000348/0.07454, allocations: 159.7 kB / 367.9 MB, free: 9.215 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.415e-05/0.07458, allocations: 16 kB / 367.9 MB, free: 9.199 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.002757/0.07734, allocations: 1.919 MB / 369.8 MB, free: 7.258 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.07734, allocations: 0 / 369.8 MB, free: 7.258 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009032/0.07824, allocations: 335.2 kB / 370.1 MB, free: 6.93 MB / 334.1 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.001924/0.08017, allocations: 0.5026 MB / 370.6 MB, free: 6.633 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001317/0.08148, allocations: 0.5731 MB / 371.2 MB, free: 6.055 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5e-06/0.08149, allocations: 0 / 371.2 MB, free: 6.055 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006683/0.08216, allocations: 332.5 kB / 371.5 MB, free: 5.73 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001267/0.08343, allocations: 293.5 kB / 371.8 MB, free: 5.445 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005459/0.08888, allocations: 3.413 MB / 375.2 MB, free: 1.984 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000968/0.08985, allocations: 0.8569 MB / 376.1 MB, free: 1.09 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006768/0.09053, allocations: 290.4 kB / 376.4 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000325/0.09085, allocations: 100.5 kB / 376.5 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of SimCode: time 7.82e-07/0.09085, allocations: 3.938 kB / 376.5 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of Templates: time 0.03834/0.1292, allocations: 21.33 MB / 397.8 MB, free: 11.59 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile [Timeout 660] (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 & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 480] 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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.411583412438631]