Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0013/0.0013, allocations: 123.5 kB / 18.46 MB, free: 4.613 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001312/0.001312, allocations: 188.3 kB / 21.39 MB, free: 1.688 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.441/1.441, allocations: 225.6 MB / 249.8 MB, free: 3.477 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Batteries.Examples.CCCVcharging,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|battery.capacitor.1..v|battery.capacitor.2..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") translateModel(Modelica.Electrical.Batteries.Examples.CCCVcharging,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|battery.capacitor.1..v|battery.capacitor.2..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001511/0.001511, allocations: 55.91 kB / 366.8 MB, free: 336 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1079, allocations: 52.14 MB / 418.9 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006138/0.1141, allocations: 4.005 MB / 422.9 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00327/0.1174, allocations: 1.92 MB / 424.9 MB, free: 6.145 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002976/0.1177, allocations: 8 kB / 424.9 MB, free: 6.137 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001346/0.119, allocations: 0.5915 MB / 425.5 MB, free: 5.543 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006531/0.1197, allocations: 350.2 kB / 425.8 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006796/0.1203, allocations: 286.3 kB / 426.1 MB, free: 4.922 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001188/0.1215, allocations: 0.978 MB / 427.1 MB, free: 3.938 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004153/0.1219, allocations: 256.5 kB / 427.3 MB, free: 3.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004429/0.1224, allocations: 382.8 kB / 427.7 MB, free: 3.305 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006282/0.123, allocations: 0.5061 MB / 428.2 MB, free: 2.797 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001307/0.1231, allocations: 80 kB / 428.3 MB, free: 2.719 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002808/0.1234, allocations: 140 kB / 428.4 MB, free: 2.582 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004012/0.1238, allocations: 470.6 kB / 428.9 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006285/0.1244, allocations: 0.6368 MB / 429.5 MB, free: 1.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00189/0.1263, allocations: 1.762 MB / 431.3 MB, free: 15.71 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.1263, allocations: 0 / 431.3 MB, free: 15.71 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1263, allocations: 0 / 431.3 MB, free: 15.71 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.975e-05/0.1264, allocations: 0 / 431.3 MB, free: 15.71 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.003032/0.1294, allocations: 1.86 MB / 433.1 MB, free: 13.79 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.1294, allocations: 8.031 kB / 433.1 MB, free: 13.79 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002629/0.1297, allocations: 167.9 kB / 433.3 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001782/0.1315, allocations: 1.198 MB / 434.5 MB, free: 12.38 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000136/0.1316, allocations: 92.97 kB / 434.6 MB, free: 12.27 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.604e-05/0.1317, allocations: 51.94 kB / 434.6 MB, free: 12.22 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001216/0.1329, allocations: 0.6635 MB / 435.3 MB, free: 11.51 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.002e-05/0.1329, allocations: 0 / 435.3 MB, free: 11.51 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.689e-05/0.133, allocations: 20 kB / 435.3 MB, free: 11.49 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.73e-05/0.133, allocations: 15.98 kB / 435.3 MB, free: 11.48 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008494/0.1339, allocations: 427.7 kB / 435.8 MB, free: 11.06 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004634/0.1385, allocations: 2.88 MB / 438.6 MB, free: 8.078 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00104/0.1395, allocations: 398.5 kB / 439 MB, free: 7.68 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006639/0.1402, allocations: 293.1 kB / 439.3 MB, free: 7.391 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.013e-05/0.1402, allocations: 8 kB / 439.3 MB, free: 7.383 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.436e-05/0.1403, allocations: 50.48 kB / 439.4 MB, free: 7.324 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 2.144e-06/0.1403, allocations: 4 kB / 439.4 MB, free: 7.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=30): time 0.002033/0.1423, allocations: 0.7716 MB / 440.1 MB, free: 6.52 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001699/0.1425, allocations: 261 kB / 440.4 MB, free: 6.203 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003078/0.1456, allocations: 2.234 MB / 442.6 MB, free: 3.957 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.317e-05/0.1456, allocations: 33.7 kB / 442.7 MB, free: 3.918 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006278/0.1462, allocations: 0.6396 MB / 443.3 MB, free: 3.27 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001227/0.1464, allocations: 115.1 kB / 443.4 MB, free: 3.156 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001486/0.1465, allocations: 82.02 kB / 443.5 MB, free: 3.066 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.1467, allocations: 321.9 kB / 443.8 MB, free: 2.746 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003691/0.147, allocations: 156.7 kB / 444 MB, free: 2.594 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004936/0.1475, allocations: 304.6 kB / 444.3 MB, free: 2.242 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007649/0.1483, allocations: 404.4 kB / 444.7 MB, free: 1.816 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.1483, allocations: 0 / 444.7 MB, free: 1.816 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001653/0.1499, allocations: 0.6453 MB / 445.3 MB, free: 1.16 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.15, allocations: 7.938 kB / 445.3 MB, free: 1.152 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.344e-05/0.15, allocations: 7.938 kB / 445.3 MB, free: 1.145 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003586/0.1503, allocations: 64.81 kB / 445.4 MB, free: 1.078 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004103/0.1507, allocations: 96 kB / 445.5 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2016/0.3523, allocations: 1.756 MB / 447.2 MB, free: 28.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007702/0.3531, allocations: 56.33 kB / 447.3 MB, free: 28.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.801e-05/0.3531, allocations: 15.09 kB / 447.3 MB, free: 28.16 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 3 (cccvCharger.CV,energy.local_reset,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0006072/0.3537, allocations: 492.3 kB / 447.8 MB, free: 28.04 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001871/0.3539, allocations: 143.3 kB / 447.9 MB, free: 28.04 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001873/0.3541, allocations: 160.2 kB / 448.1 MB, free: 28.02 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.3541, allocations: 6.781 kB / 448.1 MB, free: 28.02 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.3541, allocations: 0 / 448.1 MB, free: 28.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.3541, allocations: 3.188 kB / 448.1 MB, free: 28.02 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002345/0.3565, allocations: 1.652 MB / 449.7 MB, free: 27.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.576e-06/0.3565, allocations: 4.156 kB / 449.7 MB, free: 27.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003473/0.3568, allocations: 71.7 kB / 449.8 MB, free: 27.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001984/0.357, allocations: 55.41 kB / 449.9 MB, free: 27.67 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.847e-05/0.3571, allocations: 10.83 kB / 449.9 MB, free: 27.67 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001195/0.3582, allocations: 1.721 MB / 451.6 MB, free: 26.19 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.3583, allocations: 3.328 kB / 451.6 MB, free: 26.19 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001425/0.3597, allocations: 0.8034 MB / 452.4 MB, free: 25.98 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004761/0.3602, allocations: 332.7 kB / 452.7 MB, free: 25.81 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001154/0.3603, allocations: 13.59 kB / 452.7 MB, free: 25.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004777/0.3607, allocations: 52.89 kB / 452.8 MB, free: 25.81 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.435e-05/0.3608, allocations: 28.17 kB / 452.8 MB, free: 25.81 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.362e-05/0.3609, allocations: 13.38 kB / 452.8 MB, free: 25.81 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002063/0.3629, allocations: 1.599 MB / 454.4 MB, free: 25.7 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3629, allocations: 0.9375 kB / 454.4 MB, free: 25.7 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008222/0.3637, allocations: 204.5 kB / 454.6 MB, free: 25.69 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (battery.limIntegrator.y,battery.capacitor[1].v,battery.capacitor[2].v,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0017/0.3654, allocations: 477.1 kB / 455.1 MB, free: 25.57 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001189/0.3666, allocations: 498 kB / 455.6 MB, free: 25.46 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.81e-06/0.3666, allocations: 1.094 kB / 455.6 MB, free: 25.46 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000545/0.3672, allocations: 301.7 kB / 455.9 MB, free: 25.35 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009723/0.3682, allocations: 211.6 kB / 456.1 MB, free: 25.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003909/0.3721, allocations: 2.729 MB / 458.8 MB, free: 24.34 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008349/0.3729, allocations: 1.253 MB / 460.1 MB, free: 23.55 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002763/0.3732, allocations: 73.88 kB / 460.1 MB, free: 23.54 MB / 366.1 MB Notification: Performance of SimCode: time 8.72e-07/0.3732, allocations: 4.938 kB / 460.1 MB, free: 23.54 MB / 366.1 MB Notification: Performance of Templates: time 0.0299/0.4031, allocations: 21.01 MB / 481.2 MB, free: 13.57 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.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: 9.121563786873594]