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.001049/0.001049, allocations: 78.97 kB / 21.42 MB, free: 3.078 MB / 18.57 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.001006/0.001006, allocations: 147.5 kB / 24.81 MB, free: 9.27 MB / 18.57 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.034/1.034, allocations: 173.3 MB / 201.4 MB, free: 9.223 MB / 186.7 MB " [Timeout remaining time 179] 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.[0-9,]+..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.[0-9,]+..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 1.343e-06/1.343e-06, allocations: 0 / 268.4 MB, free: 6.223 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.35e-05/1.484e-05, allocations: 2.312 kB / 268.4 MB, free: 6.219 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.007722/0.007737, allocations: 3.891 MB / 272.3 MB, free: 2.305 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002495/0.01023, allocations: 1.858 MB / 274.1 MB, free: 448 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001997/0.01043, allocations: 15.94 kB / 274.2 MB, free: 432 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009096/0.01134, allocations: 0.5755 MB / 274.7 MB, free: 15.84 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003944/0.01174, allocations: 369.9 kB / 275.1 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003606/0.0121, allocations: 287.4 kB / 275.4 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006905/0.01279, allocations: 1.001 MB / 276.4 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002602/0.01305, allocations: 213 kB / 276.6 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003802/0.01343, allocations: 0.538 MB / 277.1 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003664/0.01379, allocations: 455 kB / 277.6 MB, free: 13 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.781e-05/0.01387, allocations: 80 kB / 277.6 MB, free: 12.92 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001654/0.01404, allocations: 139.9 kB / 277.8 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002513/0.01429, allocations: 482.6 kB / 278.3 MB, free: 12.31 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002449/0.01453, allocations: 386.8 kB / 278.6 MB, free: 11.93 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007364/0.01527, allocations: 1.078 MB / 279.7 MB, free: 10.85 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.954e-06/0.01527, allocations: 0 / 279.7 MB, free: 10.85 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.01527, allocations: 0 / 279.7 MB, free: 10.85 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.095e-06/0.01528, allocations: 4 kB / 279.7 MB, free: 10.85 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001865/0.01715, allocations: 1.905 MB / 281.6 MB, free: 8.891 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.01718, allocations: 12.03 kB / 281.6 MB, free: 8.879 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001674/0.01735, allocations: 211.8 kB / 281.8 MB, free: 8.672 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007214/0.01807, allocations: 0.7685 MB / 282.6 MB, free: 7.867 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.762e-05/0.01817, allocations: 174.1 kB / 282.8 MB, free: 7.668 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.497e-05/0.01823, allocations: 56.38 kB / 282.8 MB, free: 7.613 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005255/0.01875, allocations: 0.833 MB / 283.7 MB, free: 6.629 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.01876, allocations: 4 kB / 283.7 MB, free: 6.625 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.009e-05/0.01879, allocations: 20 kB / 283.7 MB, free: 6.605 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-06/0.0188, allocations: 12 kB / 283.7 MB, free: 6.594 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001763/0.01898, allocations: 146.8 kB / 283.8 MB, free: 6.449 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001819/0.0208, allocations: 2.203 MB / 286 MB, free: 4.164 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003277/0.02112, allocations: 235.1 kB / 286.3 MB, free: 3.922 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002278/0.02135, allocations: 179.5 kB / 286.5 MB, free: 3.742 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.576e-05/0.02137, allocations: 4 kB / 286.5 MB, free: 3.738 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.406e-05/0.02139, allocations: 45.38 kB / 286.5 MB, free: 3.684 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.222e-06/0.02139, allocations: 0 / 286.5 MB, free: 3.684 MB / 266.7 MB Notification: Performance of matching and sorting (n=30): time 0.0006131/0.022, allocations: 424.7 kB / 286.9 MB, free: 3.258 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.279e-05/0.02209, allocations: 273 kB / 287.2 MB, free: 2.93 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001418/0.02351, allocations: 1.521 MB / 288.7 MB, free: 1.375 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.726e-05/0.02353, allocations: 41.69 kB / 288.7 MB, free: 1.328 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004263/0.02396, allocations: 0.8032 MB / 289.5 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.673e-05/0.02402, allocations: 111 kB / 289.7 MB, free: 416 kB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001011/0.02412, allocations: 91.64 kB / 289.7 MB, free: 312 kB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.122/0.1461, allocations: 0.4887 MB / 290.2 MB, free: 27.43 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001869/0.1463, allocations: 41.12 kB / 290.3 MB, free: 27.43 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001874/0.1465, allocations: 430 kB / 290.7 MB, free: 26.96 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002126/0.1467, allocations: 220.3 kB / 290.9 MB, free: 26.84 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.1467, allocations: 1.156 kB / 290.9 MB, free: 26.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008033/0.1475, allocations: 420.2 kB / 291.3 MB, free: 26.79 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.1475, allocations: 6.312 kB / 291.3 MB, free: 26.79 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.555e-06/0.1476, allocations: 2.938 kB / 291.3 MB, free: 26.79 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001606/0.1477, allocations: 43.33 kB / 291.4 MB, free: 26.78 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001921/0.1479, allocations: 85.16 kB / 291.5 MB, free: 26.78 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009006/0.1488, allocations: 2.087 MB / 293.5 MB, free: 24.86 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002936/0.1491, allocations: 44.45 kB / 293.6 MB, free: 24.86 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.89e-05/0.1491, allocations: 12.09 kB / 293.6 MB, free: 24.86 MB / 266.7 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 (battery.limIntegrator.local_reset,energy.local_reset,cccvCharger.CV) * 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.0002681/0.1494, allocations: 181.2 kB / 293.8 MB, free: 24.7 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001408/0.1495, allocations: 150.8 kB / 293.9 MB, free: 24.67 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001279/0.1497, allocations: 125.9 kB / 294 MB, free: 24.65 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.1497, allocations: 5.438 kB / 294 MB, free: 24.65 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.1497, allocations: 0.6562 kB / 294 MB, free: 24.65 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.1497, allocations: 5.391 kB / 294.1 MB, free: 24.65 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001317/0.151, allocations: 1.101 MB / 295.2 MB, free: 24.32 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.151, allocations: 3.125 kB / 295.2 MB, free: 24.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001625/0.1512, allocations: 62.14 kB / 295.2 MB, free: 24.32 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.634e-05/0.1513, allocations: 42.67 kB / 295.3 MB, free: 24.31 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.838e-05/0.1513, allocations: 10.88 kB / 295.3 MB, free: 24.31 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007288/0.152, allocations: 2.048 MB / 297.3 MB, free: 22.38 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.152, allocations: 0.9375 kB / 297.3 MB, free: 22.38 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005912/0.1526, allocations: 0.5638 MB / 297.9 MB, free: 22.07 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002192/0.1528, allocations: 200.7 kB / 298.1 MB, free: 22 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.54e-05/0.1529, allocations: 16 kB / 298.1 MB, free: 21.99 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001945/0.1531, allocations: 36.98 kB / 298.1 MB, free: 21.99 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6e-05/0.1531, allocations: 29.23 kB / 298.2 MB, free: 21.99 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.476e-05/0.1532, allocations: 9.281 kB / 298.2 MB, free: 21.99 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0009001/0.1541, allocations: 0.8477 MB / 299 MB, free: 21.84 MB / 266.7 MB Notification: Performance of sort global known variables: time 3e-08/0.1541, allocations: 0 / 299 MB, free: 21.84 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005462/0.1546, allocations: 215.3 kB / 299.2 MB, free: 21.82 MB / 266.7 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.000953/0.1556, allocations: 432.2 kB / 299.6 MB, free: 21.69 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00045/0.156, allocations: 374.2 kB / 300 MB, free: 21.5 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/0.156, allocations: 5.719 kB / 300 MB, free: 21.5 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002015/0.1562, allocations: 279.1 kB / 300.3 MB, free: 21.31 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005416/0.1568, allocations: 199 kB / 300.5 MB, free: 21.28 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002798/0.1596, allocations: 2.095 MB / 302.6 MB, free: 20.3 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003725/0.1599, allocations: 309.6 kB / 302.9 MB, free: 20.22 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003881/0.1603, allocations: 120 kB / 303 MB, free: 20.2 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000518/0.1608, allocations: 290.2 kB / 303.3 MB, free: 20.13 MB / 266.7 MB Notification: Performance of SimCode: time 2.014e-06/0.1608, allocations: 5.188 kB / 303.3 MB, free: 20.13 MB / 266.7 MB Notification: Performance of Templates: time 0.0194/0.1802, allocations: 14.82 MB / 318.1 MB, free: 10.18 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.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.1768279559910297]