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.001435/0.001435, allocations: 71.77 kB / 21.69 MB, free: 2.859 MB / 18.57 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.001609/0.001609, allocations: 165.9 kB / 24.99 MB, free: 8.793 MB / 18.57 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.051/1.051, allocations: 177.1 MB / 205.3 MB, free: 5.652 MB / 186.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 1.473e-06/1.473e-06, allocations: 0 / 273 MB, free: 1.871 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.384e-05/1.531e-05, allocations: 2.312 kB / 273 MB, free: 1.867 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.005269/0.005284, allocations: 5.7 MB / 278.7 MB, free: 12.14 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003507/0.008791, allocations: 2.703 MB / 281.4 MB, free: 9.426 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003223/0.009113, allocations: 31.81 kB / 281.5 MB, free: 9.395 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001132/0.01025, allocations: 0.7502 MB / 282.2 MB, free: 8.641 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007038/0.01095, allocations: 0.5824 MB / 282.8 MB, free: 8.055 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008799/0.01183, allocations: 0.499 MB / 283.3 MB, free: 7.555 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001065/0.01289, allocations: 1.66 MB / 285 MB, free: 5.891 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004303/0.01332, allocations: 379 kB / 285.3 MB, free: 5.492 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000602/0.01393, allocations: 0.8966 MB / 286.2 MB, free: 4.594 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005278/0.01445, allocations: 0.6546 MB / 286.9 MB, free: 3.938 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001178/0.01457, allocations: 132 kB / 287 MB, free: 3.809 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002367/0.01481, allocations: 215.8 kB / 287.2 MB, free: 3.598 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003665/0.01518, allocations: 0.6505 MB / 287.9 MB, free: 2.945 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003796/0.01555, allocations: 0.5803 MB / 288.5 MB, free: 2.363 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001045/0.0166, allocations: 1.522 MB / 290 MB, free: 0.8359 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.265e-06/0.0166, allocations: 4 kB / 290 MB, free: 0.832 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.0166, allocations: 0 / 290 MB, free: 0.832 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.207e-05/0.01661, allocations: 0 / 290 MB, free: 0.832 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.1159/0.1325, allocations: 2.667 MB / 292.7 MB, free: 28.55 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.122e-05/0.1325, allocations: 9.906 kB / 292.7 MB, free: 28.55 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005845/0.1331, allocations: 306.8 kB / 293 MB, free: 28.39 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00215/0.1353, allocations: 1.188 MB / 294.1 MB, free: 27.85 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001292/0.1354, allocations: 146.2 kB / 294.3 MB, free: 27.72 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001352/0.1355, allocations: 97.16 kB / 294.4 MB, free: 27.69 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001431/0.137, allocations: 1.438 MB / 295.8 MB, free: 26.45 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.421e-05/0.137, allocations: 2.516 kB / 295.8 MB, free: 26.45 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.434e-05/0.1371, allocations: 41.91 kB / 295.9 MB, free: 26.43 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.927e-05/0.1371, allocations: 20.69 kB / 295.9 MB, free: 26.43 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008372/0.1379, allocations: 308.9 kB / 296.2 MB, free: 26.37 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005038/0.143, allocations: 4.198 MB / 300.4 MB, free: 23.61 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007494/0.1437, allocations: 341.2 kB / 300.7 MB, free: 23.49 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004535/0.1442, allocations: 199.5 kB / 300.9 MB, free: 23.44 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.278e-05/0.1442, allocations: 9.641 kB / 300.9 MB, free: 23.44 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.067e-05/0.1443, allocations: 47.59 kB / 301 MB, free: 23.39 MB / 266.7 MB Notification: Performance of pre-optimization done (n=44): time 3.085e-06/0.1443, allocations: 0 / 301 MB, free: 23.39 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.001129/0.1454, allocations: 478.8 kB / 301.4 MB, free: 23.2 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.733e-05/0.1455, allocations: 424.3 kB / 301.9 MB, free: 22.7 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002869/0.1483, allocations: 2.029 MB / 303.9 MB, free: 21.89 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.218e-05/0.1484, allocations: 37.92 kB / 303.9 MB, free: 21.85 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000732/0.1491, allocations: 1.059 MB / 305 MB, free: 21.04 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001076/0.1492, allocations: 167.8 kB / 305.1 MB, free: 20.91 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001696/0.1494, allocations: 129 kB / 305.3 MB, free: 20.83 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.614e-05/0.1495, allocations: 0.5031 MB / 305.8 MB, free: 20.34 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002046/0.1497, allocations: 80.62 kB / 305.9 MB, free: 20.33 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003991/0.1501, allocations: 0.8033 MB / 306.7 MB, free: 19.39 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005171/0.1506, allocations: 463.6 kB / 307.1 MB, free: 18.98 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.272e-06/0.1506, allocations: 3.25 kB / 307.1 MB, free: 18.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0009909/0.1516, allocations: 0.5879 MB / 307.7 MB, free: 18.7 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.384e-05/0.1516, allocations: 7.125 kB / 307.7 MB, free: 18.7 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.1516, allocations: 6.031 kB / 307.7 MB, free: 18.7 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.332e-05/0.1516, allocations: 9.594 kB / 307.7 MB, free: 18.7 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004243/0.1521, allocations: 152 kB / 307.9 MB, free: 18.66 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.409e-05/0.1521, allocations: 15.81 kB / 307.9 MB, free: 18.65 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005818/0.1527, allocations: 120.3 kB / 308 MB, free: 18.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.125e-05/0.1527, allocations: 27.84 kB / 308 MB, free: 18.59 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.0002604/0.153, allocations: 200.3 kB / 308.2 MB, free: 18.39 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001962/0.1532, allocations: 204 kB / 308.4 MB, free: 18.29 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006279/0.1538, allocations: 435.4 kB / 308.8 MB, free: 17.93 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.1538, allocations: 4 kB / 308.9 MB, free: 17.93 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.1538, allocations: 0 / 308.9 MB, free: 17.93 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.1538, allocations: 0 / 308.9 MB, free: 17.93 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002178/0.156, allocations: 1.748 MB / 310.6 MB, free: 16.13 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.156, allocations: 4 kB / 310.6 MB, free: 16.13 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003312/0.1563, allocations: 107.9 kB / 310.7 MB, free: 16.02 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.16e-06/0.1563, allocations: 3.938 kB / 310.7 MB, free: 16.02 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.82e-05/0.1564, allocations: 12 kB / 310.7 MB, free: 16.01 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.1564, allocations: 0 / 310.7 MB, free: 16.01 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.1564, allocations: 0 / 310.7 MB, free: 16.01 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008074/0.1572, allocations: 0.6986 MB / 311.4 MB, free: 15.28 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004478/0.1576, allocations: 322.5 kB / 311.7 MB, free: 14.96 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001536/0.1578, allocations: 12 kB / 311.8 MB, free: 14.95 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005021/0.1583, allocations: 99.91 kB / 311.8 MB, free: 14.86 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002849/0.1586, allocations: 195.6 kB / 312 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.051e-05/0.1586, allocations: 16 kB / 312.1 MB, free: 14.65 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001257/0.1599, allocations: 1.185 MB / 313.2 MB, free: 13.44 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1599, allocations: 0 / 313.2 MB, free: 13.44 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007177/0.1606, allocations: 323.3 kB / 313.6 MB, free: 13.12 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.001177/0.1618, allocations: 466.6 kB / 314 MB, free: 12.89 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000531/0.1623, allocations: 303.8 kB / 314.3 MB, free: 12.6 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.588e-06/0.1623, allocations: 2.234 kB / 314.3 MB, free: 12.6 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002156/0.1625, allocations: 144.1 kB / 314.5 MB, free: 12.45 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009784/0.1635, allocations: 306.7 kB / 314.8 MB, free: 12.16 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003516/0.167, allocations: 2.845 MB / 317.6 MB, free: 9.258 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002672/0.1673, allocations: 375.1 kB / 318 MB, free: 8.867 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004615/0.1677, allocations: 198.4 kB / 318.2 MB, free: 8.668 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002561/0.168, allocations: 112.5 kB / 318.3 MB, free: 8.559 MB / 266.7 MB Notification: Performance of SimCode: time 1.263e-06/0.168, allocations: 0 / 318.3 MB, free: 8.559 MB / 266.7 MB Notification: Performance of Templates: time 0.02771/0.1957, allocations: 21.38 MB / 339.6 MB, free: 3.426 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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.6405600579455495]