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.001372/0.001372, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001421/0.001421, allocations: 209.7 kB / 23.73 MB, free: 4.387 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.579/1.579, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.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 0.001813/0.001813, allocations: 51.92 kB / 378.2 MB, free: 2.488 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2883/0.2901, allocations: 53.38 MB / 431.6 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007286/0.2974, allocations: 5.207 MB / 436.8 MB, free: 1.496 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004466/0.3019, allocations: 2.593 MB / 439.4 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005924/0.3025, allocations: 27.81 kB / 439.4 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001756/0.3042, allocations: 0.7424 MB / 440.1 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001233/0.3054, allocations: 0.5672 MB / 440.7 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001251/0.3067, allocations: 0.5138 MB / 441.2 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002156/0.3089, allocations: 1.601 MB / 442.8 MB, free: 11.44 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007067/0.3096, allocations: 383 kB / 443.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009577/0.3105, allocations: 0.6345 MB / 443.8 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001062/0.3116, allocations: 0.7119 MB / 444.5 MB, free: 9.684 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002247/0.3118, allocations: 132 kB / 444.7 MB, free: 9.555 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004728/0.3123, allocations: 219.9 kB / 444.9 MB, free: 9.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007453/0.313, allocations: 0.6427 MB / 445.5 MB, free: 8.695 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007955/0.3138, allocations: 0.7224 MB / 446.3 MB, free: 7.969 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002852/0.3167, allocations: 2.529 MB / 448.8 MB, free: 5.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.3167, allocations: 0 / 448.8 MB, free: 5.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.3167, allocations: 0 / 448.8 MB, free: 5.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.439e-05/0.3167, allocations: 0 / 448.8 MB, free: 5.43 MB / 350.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.005385/0.3221, allocations: 2.579 MB / 451.4 MB, free: 2.809 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/0.3222, allocations: 12.03 kB / 451.4 MB, free: 2.797 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003912/0.3225, allocations: 235.4 kB / 451.6 MB, free: 2.566 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00252/0.3251, allocations: 1.495 MB / 453.1 MB, free: 1.016 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001528/0.3252, allocations: 143.7 kB / 453.2 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001355/0.3254, allocations: 91.88 kB / 453.3 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00246/0.3278, allocations: 1.71 MB / 455 MB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.616e-05/0.3278, allocations: 3.938 kB / 455 MB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.753e-05/0.3279, allocations: 40 kB / 455.1 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.367e-05/0.328, allocations: 20 kB / 455.1 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001431/0.3294, allocations: 0.7182 MB / 455.8 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007312/0.3367, allocations: 4.048 MB / 459.9 MB, free: 9.852 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001193/0.3379, allocations: 0.5171 MB / 460.4 MB, free: 9.324 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000761/0.3387, allocations: 357.9 kB / 460.7 MB, free: 8.973 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.38e-05/0.3387, allocations: 11.98 kB / 460.8 MB, free: 8.961 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.992e-05/0.3388, allocations: 38.56 kB / 460.8 MB, free: 8.914 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 3.026e-06/0.3388, allocations: 0 / 460.8 MB, free: 8.914 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001921/0.3407, allocations: 0.8209 MB / 461.6 MB, free: 8.086 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002498/0.3409, allocations: 431.2 kB / 462 MB, free: 7.566 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003945/0.3449, allocations: 2.723 MB / 464.8 MB, free: 4.797 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001017/0.345, allocations: 37.7 kB / 464.8 MB, free: 4.754 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008674/0.3459, allocations: 0.9144 MB / 465.7 MB, free: 3.832 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000157/0.346, allocations: 154.7 kB / 465.9 MB, free: 3.68 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000238/0.3462, allocations: 126.3 kB / 466 MB, free: 3.551 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.3464, allocations: 337.9 kB / 466.3 MB, free: 3.215 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005715/0.347, allocations: 253.2 kB / 466.6 MB, free: 2.969 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001004/0.348, allocations: 0.8799 MB / 467.4 MB, free: 1.883 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001103/0.3491, allocations: 0.6249 MB / 468.1 MB, free: 1.18 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/0.3491, allocations: 4 kB / 468.1 MB, free: 1.176 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001824/0.3509, allocations: 0.8504 MB / 468.9 MB, free: 324 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.504e-05/0.3509, allocations: 11.98 kB / 468.9 MB, free: 312 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.867e-05/0.351, allocations: 11.94 kB / 468.9 MB, free: 300 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.632e-05/0.351, allocations: 8 kB / 468.9 MB, free: 292 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000612/0.3516, allocations: 159.7 kB / 469.1 MB, free: 132 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.528e-05/0.3516, allocations: 8 kB / 469.1 MB, free: 124 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001013/0.3526, allocations: 163.5 kB / 469.3 MB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.536e-05/0.3527, allocations: 24 kB / 469.3 MB, free: 15.94 MB / 382.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.0008257/0.3535, allocations: 0.5599 MB / 469.9 MB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000258/0.3538, allocations: 190.8 kB / 470 MB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001414/0.3552, allocations: 0.688 MB / 470.7 MB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.623e-06/0.3552, allocations: 8 kB / 470.7 MB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.778e-06/0.3552, allocations: 11.92 kB / 470.7 MB, free: 14.46 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.3552, allocations: 0 / 470.7 MB, free: 14.46 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003211/0.3584, allocations: 1.788 MB / 472.5 MB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.3584, allocations: 0 / 472.5 MB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005001/0.3589, allocations: 107.9 kB / 472.6 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.476e-06/0.3589, allocations: 4 kB / 472.6 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.831e-05/0.359, allocations: 16.09 kB / 472.7 MB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.703e-06/0.359, allocations: 4 kB / 472.7 MB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.359, allocations: 0 / 472.7 MB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001841/0.3608, allocations: 1.048 MB / 473.7 MB, free: 11.42 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008585/0.3617, allocations: 342.6 kB / 474 MB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000167/0.3618, allocations: 12 kB / 474.1 MB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001025/0.3629, allocations: 135.8 kB / 474.2 MB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003195/0.3632, allocations: 155.7 kB / 474.3 MB, free: 10.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.88e-05/0.3632, allocations: 20 kB / 474.4 MB, free: 10.77 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002722/0.3659, allocations: 1.927 MB / 476.3 MB, free: 8.816 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3659, allocations: 4 kB / 476.3 MB, free: 8.812 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008984/0.3668, allocations: 315.3 kB / 476.6 MB, free: 8.504 MB / 382.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.001977/0.3688, allocations: 0.5156 MB / 477.1 MB, free: 8.199 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001271/0.3701, allocations: 0.5686 MB / 477.7 MB, free: 7.629 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.742e-06/0.3701, allocations: 4 kB / 477.7 MB, free: 7.625 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006722/0.3708, allocations: 332.7 kB / 478 MB, free: 7.301 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00121/0.372, allocations: 279.3 kB / 478.3 MB, free: 7.027 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005672/0.3777, allocations: 3.53 MB / 481.8 MB, free: 3.449 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001025/0.3787, allocations: 0.8532 MB / 482.7 MB, free: 2.555 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007067/0.3794, allocations: 302.3 kB / 483 MB, free: 2.254 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003063/0.3797, allocations: 99.42 kB / 483.1 MB, free: 2.156 MB / 382.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3797, allocations: 0 / 483.1 MB, free: 2.156 MB / 382.1 MB Notification: Performance of Templates: time 0.04443/0.4241, allocations: 23.2 MB / 0.4944 GB, free: 11.22 MB / 414.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.902525305747986]