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.001828/0.001828, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001938/0.001938, allocations: 206 kB / 23.73 MB, free: 4.523 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.549/1.549, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.001611/0.001611, allocations: 51.92 kB / 378.2 MB, free: 2.449 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2837/0.2853, allocations: 53.37 MB / 431.6 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.008318/0.2937, allocations: 5.218 MB / 436.8 MB, free: 1.469 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005187/0.2989, allocations: 2.597 MB / 439.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007092/0.2996, allocations: 31.81 kB / 439.4 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001884/0.3014, allocations: 0.7464 MB / 440.2 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001329/0.3028, allocations: 0.5633 MB / 440.7 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001403/0.3042, allocations: 0.5169 MB / 441.2 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002057/0.3062, allocations: 1.602 MB / 442.8 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00073/0.307, allocations: 411.1 kB / 443.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008741/0.3078, allocations: 0.6268 MB / 443.9 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001023/0.3089, allocations: 0.7705 MB / 444.6 MB, free: 9.566 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001989/0.3091, allocations: 136 kB / 444.8 MB, free: 9.434 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004503/0.3095, allocations: 204 kB / 445 MB, free: 9.234 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006475/0.3102, allocations: 0.6582 MB / 445.6 MB, free: 8.574 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007718/0.3109, allocations: 0.7108 MB / 446.3 MB, free: 7.859 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002745/0.3137, allocations: 2.541 MB / 448.9 MB, free: 5.309 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.89e-06/0.3137, allocations: 0 / 448.9 MB, free: 5.309 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3137, allocations: 0 / 448.9 MB, free: 5.309 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.309e-05/0.3137, allocations: 0 / 448.9 MB, free: 5.309 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.005626/0.3193, allocations: 2.577 MB / 451.5 MB, free: 2.688 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.3194, allocations: 8.031 kB / 451.5 MB, free: 2.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004037/0.3198, allocations: 235.4 kB / 451.7 MB, free: 2.449 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002798/0.3226, allocations: 1.491 MB / 453.2 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001926/0.3228, allocations: 151.7 kB / 453.3 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001397/0.3229, allocations: 83.94 kB / 453.4 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002403/0.3253, allocations: 1.722 MB / 455.1 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.347e-05/0.3253, allocations: 0 / 455.1 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.372e-05/0.3254, allocations: 36 kB / 455.2 MB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.928e-05/0.3255, allocations: 24 kB / 455.2 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00137/0.3268, allocations: 0.7143 MB / 455.9 MB, free: 13.94 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007236/0.3341, allocations: 4.048 MB / 460 MB, free: 9.734 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001142/0.3352, allocations: 0.5217 MB / 460.5 MB, free: 9.203 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007428/0.3359, allocations: 361.9 kB / 460.8 MB, free: 8.848 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.252e-05/0.336, allocations: 4 kB / 460.8 MB, free: 8.844 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.917e-05/0.336, allocations: 46.56 kB / 460.9 MB, free: 8.789 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.505e-06/0.336, allocations: 0 / 460.9 MB, free: 8.789 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001815/0.3379, allocations: 0.821 MB / 461.7 MB, free: 7.961 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002644/0.3381, allocations: 423.2 kB / 462.1 MB, free: 7.449 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003918/0.342, allocations: 2.727 MB / 464.8 MB, free: 4.676 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.961e-05/0.3421, allocations: 45.64 kB / 464.9 MB, free: 4.625 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009037/0.343, allocations: 0.9028 MB / 465.8 MB, free: 3.715 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001513/0.3432, allocations: 166.6 kB / 466 MB, free: 3.551 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002227/0.3434, allocations: 122.3 kB / 466.1 MB, free: 3.426 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.3436, allocations: 330 kB / 466.4 MB, free: 3.098 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005431/0.3441, allocations: 257.1 kB / 466.6 MB, free: 2.848 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001027/0.3451, allocations: 0.8839 MB / 467.5 MB, free: 1.758 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001076/0.3462, allocations: 0.6172 MB / 468.1 MB, free: 1.062 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.778e-06/0.3462, allocations: 4 kB / 468.2 MB, free: 1.059 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001941/0.3482, allocations: 0.8505 MB / 469 MB, free: 204 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.37e-05/0.3482, allocations: 12.09 kB / 469 MB, free: 192 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.589e-05/0.3482, allocations: 7.938 kB / 469 MB, free: 184 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.207e-05/0.3483, allocations: 8 kB / 469 MB, free: 176 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006447/0.3489, allocations: 163.7 kB / 469.2 MB, free: 12 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.027e-05/0.349, allocations: 15.98 kB / 469.2 MB, free: 15.99 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001276/0.3502, allocations: 163.2 kB / 469.4 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.122e-05/0.3503, allocations: 28 kB / 469.4 MB, free: 15.81 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.001248/0.3515, allocations: 0.5586 MB / 470 MB, free: 15.24 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00031/0.3518, allocations: 186.8 kB / 470.1 MB, free: 15.06 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00139/0.3532, allocations: 0.6919 MB / 470.8 MB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.213e-06/0.3532, allocations: 4 kB / 470.8 MB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.3533, allocations: 0 / 470.8 MB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.358e-06/0.3533, allocations: 7.922 kB / 470.8 MB, free: 14.35 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003522/0.3568, allocations: 1.784 MB / 472.6 MB, free: 12.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/0.3568, allocations: 4 kB / 472.6 MB, free: 12.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004732/0.3573, allocations: 103.9 kB / 472.7 MB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.015e-06/0.3573, allocations: 3.984 kB / 472.7 MB, free: 12.4 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.847e-05/0.3573, allocations: 16 kB / 472.7 MB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.3573, allocations: 3.938 kB / 472.7 MB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.3573, allocations: 4.094 kB / 472.8 MB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001781/0.3591, allocations: 1.048 MB / 473.8 MB, free: 11.3 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008355/0.3599, allocations: 338.6 kB / 474.1 MB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002006/0.3601, allocations: 12 kB / 474.1 MB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009924/0.3611, allocations: 147.8 kB / 474.3 MB, free: 10.81 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003192/0.3614, allocations: 151.8 kB / 474.4 MB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.904e-05/0.3615, allocations: 20 kB / 474.5 MB, free: 10.64 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002659/0.3641, allocations: 1.923 MB / 476.4 MB, free: 8.699 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3641, allocations: 4 kB / 476.4 MB, free: 8.695 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001034/0.3652, allocations: 323.3 kB / 476.7 MB, free: 8.379 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.00195/0.3671, allocations: 0.5001 MB / 477.2 MB, free: 8.086 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0013/0.3684, allocations: 0.5803 MB / 477.8 MB, free: 7.504 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/0.3684, allocations: 0 / 477.8 MB, free: 7.504 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006785/0.3691, allocations: 332.7 kB / 478.1 MB, free: 7.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001319/0.3704, allocations: 289.9 kB / 478.4 MB, free: 6.902 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006526/0.377, allocations: 3.522 MB / 481.9 MB, free: 3.332 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009907/0.3779, allocations: 0.8532 MB / 482.8 MB, free: 2.438 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008818/0.3788, allocations: 282.4 kB / 483 MB, free: 2.156 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003036/0.3791, allocations: 107.4 kB / 483.1 MB, free: 2.051 MB / 382.1 MB Notification: Performance of SimCode: time 7.22e-07/0.3791, allocations: 0 / 483.1 MB, free: 2.051 MB / 382.1 MB Notification: Performance of Templates: time 0.04222/0.4213, allocations: 23.38 MB / 0.4947 GB, free: 10.93 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.730323892086744]