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.0009176/0.0009176, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001196/0.002113, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0007309/0.0007309, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001043/0.001774, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.055/1.055, allocations: 177.2 MB / 189.8 MB, free: 5.242 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0975/1.152, allocations: 53.66 MB / 243.4 MB, free: 15.5 MB / 250.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: translateModel(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=36000,variableFilter="time|battery1.limIntegrator.y|battery2.capacitor.[0-9,]+..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.[0-9,]+..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 2.114e-06/2.114e-06, allocations: 0 / 244.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.919e-05/3.131e-05, allocations: 10.31 kB / 244.7 MB, free: 14.21 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.005706/0.005737, allocations: 5.688 MB / 250.4 MB, free: 8.492 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005314/0.01105, allocations: 2.784 MB / 253.2 MB, free: 5.695 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001292/0.01234, allocations: 27.81 kB / 253.2 MB, free: 5.668 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002145/0.01449, allocations: 0.7853 MB / 254 MB, free: 4.879 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001524/0.01601, allocations: 0.5823 MB / 254.6 MB, free: 4.293 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001211/0.01722, allocations: 0.5068 MB / 255.1 MB, free: 3.785 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002019/0.01924, allocations: 1.64 MB / 256.7 MB, free: 2.141 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006454/0.01989, allocations: 395 kB / 257.1 MB, free: 1.73 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00173/0.02162, allocations: 1.081 MB / 258.2 MB, free: 0.6328 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001135/0.02275, allocations: 0.6195 MB / 258.8 MB, free: 12 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003954/0.02315, allocations: 136 kB / 258.9 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006148/0.02376, allocations: 211.7 kB / 259.1 MB, free: 15.67 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004705/0.02423, allocations: 0.5804 MB / 259.7 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006592/0.02489, allocations: 458.8 kB / 260.2 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002288/0.02718, allocations: 1.448 MB / 261.6 MB, free: 13.19 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.178e-05/0.02719, allocations: 4 kB / 261.6 MB, free: 13.18 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.02719, allocations: 0 / 261.6 MB, free: 13.18 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.691e-05/0.02727, allocations: 3.938 kB / 261.6 MB, free: 13.18 MB / 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.004501/0.03177, allocations: 2.704 MB / 264.3 MB, free: 10.43 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.03181, allocations: 11.98 kB / 264.3 MB, free: 10.42 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003151/0.03213, allocations: 208.7 kB / 264.6 MB, free: 10.22 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001252/0.03338, allocations: 0.9104 MB / 265.5 MB, free: 9.25 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001069/0.03348, allocations: 143.7 kB / 265.6 MB, free: 9.09 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.74e-05/0.03358, allocations: 100.4 kB / 265.7 MB, free: 8.992 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001004/0.03459, allocations: 1.354 MB / 267.1 MB, free: 7.414 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.58e-05/0.0346, allocations: 0 / 267.1 MB, free: 7.414 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.309e-05/0.03465, allocations: 40 kB / 267.1 MB, free: 7.375 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.542e-05/0.03467, allocations: 20 kB / 267.1 MB, free: 7.355 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003066/0.03498, allocations: 224.6 kB / 267.3 MB, free: 7.133 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003275/0.03825, allocations: 3.095 MB / 270.4 MB, free: 3.898 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004073/0.03866, allocations: 330.5 kB / 270.8 MB, free: 3.562 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002158/0.03888, allocations: 168.1 kB / 270.9 MB, free: 3.398 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.285e-05/0.03892, allocations: 8 kB / 270.9 MB, free: 3.391 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.915e-05/0.03895, allocations: 46.56 kB / 271 MB, free: 3.336 MB / 266.7 MB Notification: Performance of pre-optimization done (n=44): time 2.204e-06/0.03895, allocations: 0 / 271 MB, free: 3.336 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.0004284/0.03938, allocations: 299.2 kB / 271.3 MB, free: 3.039 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.355e-05/0.03941, allocations: 63.41 kB / 271.3 MB, free: 2.965 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001353/0.04076, allocations: 1.723 MB / 273 MB, free: 1.191 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.591e-05/0.0408, allocations: 37.7 kB / 273.1 MB, free: 1.148 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002875/0.04109, allocations: 0.5586 MB / 273.6 MB, free: 0.582 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.586e-05/0.04117, allocations: 166.6 kB / 273.8 MB, free: 428 kB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001248/0.0413, allocations: 122.2 kB / 273.9 MB, free: 300 kB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001017/0.0414, allocations: 337.8 kB / 274.3 MB, free: 15.96 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.881e-05/0.0415, allocations: 60.11 kB / 274.3 MB, free: 15.89 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003461/0.04185, allocations: 0.673 MB / 275 MB, free: 15.02 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006332/0.04248, allocations: 373.8 kB / 275.3 MB, free: 14.57 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.04248, allocations: 4 kB / 275.4 MB, free: 14.57 MB / 282.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0005047/0.04299, allocations: 416.7 kB / 275.8 MB, free: 14.15 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.04301, allocations: 4 kB / 275.8 MB, free: 14.15 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.04302, allocations: 8.75 kB / 275.8 MB, free: 14.14 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.04303, allocations: 8 kB / 275.8 MB, free: 14.13 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004408/0.04347, allocations: 183.8 kB / 276 MB, free: 13.95 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.687e-06/0.04348, allocations: 11.94 kB / 276 MB, free: 13.94 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004013/0.04388, allocations: 127.4 kB / 276.1 MB, free: 13.82 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.218e-05/0.04391, allocations: 20 kB / 276.1 MB, free: 13.8 MB / 282.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.0002357/0.04415, allocations: 168.3 kB / 276.3 MB, free: 13.62 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001225/0.04427, allocations: 115.9 kB / 276.4 MB, free: 13.51 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004176/0.04469, allocations: 347.7 kB / 276.7 MB, free: 13.16 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.459e-06/0.04469, allocations: 4 kB / 276.7 MB, free: 13.16 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.432e-06/0.0447, allocations: 0 / 276.7 MB, free: 13.16 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.0447, allocations: 0 / 276.7 MB, free: 13.16 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001333/0.04603, allocations: 1.172 MB / 277.9 MB, free: 11.94 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.04604, allocations: 4 kB / 277.9 MB, free: 11.94 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003192/0.04636, allocations: 123.8 kB / 278 MB, free: 11.82 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002855/0.04664, allocations: 226.7 kB / 278.3 MB, free: 11.59 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.04665, allocations: 0 / 278.3 MB, free: 11.59 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.575e-05/0.04667, allocations: 15.92 kB / 278.3 MB, free: 11.58 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.04668, allocations: 4 kB / 278.3 MB, free: 11.57 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.215e-06/0.04668, allocations: 0 / 278.3 MB, free: 11.57 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004873/0.04717, allocations: 0.5164 MB / 278.8 MB, free: 11.03 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.574e-05/0.04726, allocations: 15.98 kB / 278.8 MB, free: 11.02 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003437/0.0476, allocations: 95.91 kB / 278.9 MB, free: 10.92 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001324/0.04774, allocations: 87.86 kB / 279 MB, free: 10.84 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.237e-05/0.04776, allocations: 12 kB / 279 MB, free: 10.82 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0007497/0.04851, allocations: 0.9124 MB / 279.9 MB, free: 9.883 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.04851, allocations: 0 / 279.9 MB, free: 9.883 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005449/0.04905, allocations: 323.3 kB / 280.2 MB, free: 9.566 MB / 282.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.001507/0.05056, allocations: 0.6592 MB / 280.9 MB, free: 9.223 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003425/0.0509, allocations: 254.9 kB / 281.1 MB, free: 8.973 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.58e-05/0.05093, allocations: 20 kB / 281.2 MB, free: 8.953 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001693/0.0511, allocations: 148.7 kB / 281.3 MB, free: 8.805 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001974/0.05307, allocations: 2.325 MB / 283.6 MB, free: 6.066 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007236/0.06031, allocations: 2.788 MB / 286.4 MB, free: 3.219 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002892/0.0606, allocations: 367.2 kB / 286.8 MB, free: 2.836 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005444/0.06114, allocations: 178.5 kB / 286.9 MB, free: 2.656 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000662/0.0618, allocations: 373.1 kB / 287.3 MB, free: 2.289 MB / 282.7 MB Notification: Performance of SimCode: time 3.046e-06/0.06181, allocations: 0 / 287.3 MB, free: 2.289 MB / 282.7 MB Notification: Performance of Templates: time 0.1398/0.2016, allocations: 22.94 MB / 310.2 MB, free: 26.53 MB / 282.7 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.468847376294434]