Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001851/0.001851, allocations: 96.25 kB / 20.96 MB, free: 3.469 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001774/0.001774, allocations: 156.9 kB / 24.27 MB, free: 172 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.515/1.515, allocations: 177 MB / 204.4 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.774e-06/1.774e-06, allocations: 0 / 272.2 MB, free: 1.812 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.466e-05/2.643e-05, allocations: 2.312 kB / 272.2 MB, free: 1.809 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007992/0.008018, allocations: 5.227 MB / 277.4 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005385/0.0134, allocations: 2.597 MB / 280 MB, free: 9.941 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007015/0.0141, allocations: 31.81 kB / 280 MB, free: 9.91 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001876/0.01598, allocations: 0.7385 MB / 280.8 MB, free: 9.168 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001305/0.01729, allocations: 0.5824 MB / 281.4 MB, free: 8.582 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00122/0.01851, allocations: 0.5146 MB / 281.9 MB, free: 8.066 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002106/0.02061, allocations: 1.652 MB / 283.5 MB, free: 6.414 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007727/0.02138, allocations: 379 kB / 283.9 MB, free: 6.016 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001624/0.02301, allocations: 0.8965 MB / 284.8 MB, free: 5.117 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009933/0.024, allocations: 0.6273 MB / 285.4 MB, free: 4.488 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002194/0.02422, allocations: 136 kB / 285.6 MB, free: 4.355 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004712/0.02469, allocations: 211.8 kB / 285.8 MB, free: 4.148 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006958/0.02539, allocations: 0.6543 MB / 286.4 MB, free: 3.492 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007195/0.02611, allocations: 0.5726 MB / 287 MB, free: 2.918 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002934/0.02904, allocations: 2.465 MB / 289.5 MB, free: 456 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.02905, allocations: 0 / 289.5 MB, free: 456 kB / 266.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.02905, allocations: 0 / 289.5 MB, free: 456 kB / 266.7 MB Notification: Performance of Transformations before backend: time 3.777e-05/0.02909, allocations: 7.938 kB / 289.5 MB, free: 448 kB / 266.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.1478/0.1769, allocations: 2.547 MB / 292 MB, free: 27.86 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.1769, allocations: 13.3 kB / 292 MB, free: 27.86 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009941/0.1779, allocations: 305 kB / 292.3 MB, free: 27.71 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003835/0.1817, allocations: 1.525 MB / 293.8 MB, free: 26.97 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001769/0.1819, allocations: 149.4 kB / 294 MB, free: 26.84 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002797/0.1822, allocations: 94.05 kB / 294.1 MB, free: 26.81 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002563/0.1847, allocations: 1.709 MB / 295.8 MB, free: 25.5 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.077e-05/0.1848, allocations: 7.531 kB / 295.8 MB, free: 25.5 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001233/0.1849, allocations: 40.06 kB / 295.8 MB, free: 25.47 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.254e-05/0.1849, allocations: 24.5 kB / 295.9 MB, free: 25.47 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001758/0.1867, allocations: 0.7154 MB / 296.6 MB, free: 25.22 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008715/0.1954, allocations: 4.085 MB / 300.7 MB, free: 22.87 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001326/0.1967, allocations: 0.5196 MB / 301.2 MB, free: 22.68 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007957/0.1975, allocations: 361.8 kB / 301.5 MB, free: 22.56 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.139e-05/0.1976, allocations: 9.594 kB / 301.5 MB, free: 22.56 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.945e-05/0.1976, allocations: 44.66 kB / 301.6 MB, free: 22.52 MB / 266.7 MB Notification: Performance of pre-optimization done (n=44): time 2.405e-06/0.1976, allocations: 0 / 301.6 MB, free: 22.52 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.002352/0.2, allocations: 0.8323 MB / 302.4 MB, free: 22.2 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001208/0.2001, allocations: 422.1 kB / 302.8 MB, free: 21.7 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004582/0.2047, allocations: 2.721 MB / 305.6 MB, free: 20.06 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000147/0.2048, allocations: 41.7 kB / 305.6 MB, free: 20.01 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005602/0.2054, allocations: 0.9045 MB / 306.5 MB, free: 19.1 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001601/0.2055, allocations: 168.6 kB / 306.7 MB, free: 18.94 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002062/0.2058, allocations: 122.2 kB / 306.8 MB, free: 18.81 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.946e-05/0.2058, allocations: 332.2 kB / 307.1 MB, free: 18.48 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000494/0.2063, allocations: 257.1 kB / 307.4 MB, free: 18.23 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006277/0.2069, allocations: 0.8878 MB / 308.2 MB, free: 17.14 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008667/0.2078, allocations: 0.6136 MB / 308.9 MB, free: 16.45 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.232e-06/0.2078, allocations: 4 kB / 308.9 MB, free: 16.45 MB / 266.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001696/0.2095, allocations: 0.8904 MB / 309.8 MB, free: 15.55 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.2095, allocations: 4 kB / 309.8 MB, free: 15.54 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.2095, allocations: 8.531 kB / 309.8 MB, free: 15.54 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.692e-05/0.2096, allocations: 12 kB / 309.8 MB, free: 15.52 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005443/0.2101, allocations: 159.7 kB / 309.9 MB, free: 15.37 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.657e-05/0.2101, allocations: 11.98 kB / 309.9 MB, free: 15.36 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001202/0.2113, allocations: 155.4 kB / 310.1 MB, free: 15.2 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.572e-05/0.2114, allocations: 28 kB / 310.1 MB, free: 15.18 MB / 266.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.0007274/0.2121, allocations: 0.5522 MB / 310.7 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004627/0.2126, allocations: 206.7 kB / 310.9 MB, free: 14.41 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001316/0.2139, allocations: 0.6924 MB / 311.6 MB, free: 13.71 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.2139, allocations: 4.797 kB / 311.6 MB, free: 13.71 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.2139, allocations: 0 / 311.6 MB, free: 13.71 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.2139, allocations: 3.984 kB / 311.6 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003377/0.2173, allocations: 1.789 MB / 313.4 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.2173, allocations: 4 kB / 313.4 MB, free: 11.87 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004545/0.2177, allocations: 110.6 kB / 313.5 MB, free: 11.77 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.224e-06/0.2177, allocations: 4 kB / 313.5 MB, free: 11.76 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.74e-05/0.2178, allocations: 8 kB / 313.5 MB, free: 11.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.077e-06/0.2178, allocations: 3.938 kB / 313.5 MB, free: 11.75 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.2178, allocations: 4 kB / 313.5 MB, free: 11.75 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00159/0.2194, allocations: 1.056 MB / 314.6 MB, free: 10.66 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007151/0.2201, allocations: 334.7 kB / 314.9 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003125/0.2204, allocations: 15.98 kB / 314.9 MB, free: 10.32 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0011/0.2215, allocations: 139.8 kB / 315 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002819/0.2218, allocations: 156.2 kB / 315.2 MB, free: 10.03 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.497e-05/0.2218, allocations: 16 kB / 315.2 MB, free: 10.02 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.00221/0.224, allocations: 1.927 MB / 317.1 MB, free: 8.066 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.224, allocations: 0 / 317.1 MB, free: 8.066 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0009558/0.225, allocations: 323.3 kB / 317.4 MB, free: 7.75 MB / 266.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.002177/0.2272, allocations: 0.5055 MB / 318 MB, free: 7.512 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001134/0.2283, allocations: 0.5809 MB / 318.5 MB, free: 6.934 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.273e-06/0.2283, allocations: 4 kB / 318.5 MB, free: 6.93 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000564/0.2289, allocations: 323.7 kB / 318.9 MB, free: 6.613 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002001/0.2309, allocations: 307.9 kB / 319.2 MB, free: 6.316 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005429/0.2363, allocations: 3.482 MB / 322.6 MB, free: 2.789 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001085/0.2374, allocations: 0.8493 MB / 323.5 MB, free: 1.898 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0008887/0.2383, allocations: 286.4 kB / 323.8 MB, free: 1.613 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004229/0.2387, allocations: 104.5 kB / 323.9 MB, free: 1.512 MB / 266.7 MB Notification: Performance of SimCode: time 1.323e-06/0.2387, allocations: 0 / 323.9 MB, free: 1.512 MB / 266.7 MB Notification: Performance of Templates: time 0.04129/0.28, allocations: 21.41 MB / 345.3 MB, free: 12.3 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.591364850988612]