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.0009251/0.0009251, allocations: 85.05 kB / 21.5 MB, free: 2.984 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.0008988/0.0008988, allocations: 142.2 kB / 24.89 MB, free: 9.211 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 0.9203/0.9203, allocations: 173.3 MB / 201.5 MB, free: 9.176 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.102e-06/1.102e-06, allocations: 0 / 268.4 MB, free: 6.203 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.24e-05/1.351e-05, allocations: 2.312 kB / 268.4 MB, free: 6.199 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.00357/0.003584, allocations: 3.917 MB / 272.4 MB, free: 2.258 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002316/0.0059, allocations: 1.908 MB / 274.3 MB, free: 348 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002154/0.006116, allocations: 15.88 kB / 274.3 MB, free: 332 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008607/0.006976, allocations: 0.5794 MB / 274.9 MB, free: 15.74 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004141/0.00739, allocations: 362 kB / 275.2 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004012/0.007792, allocations: 295.3 kB / 275.5 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000779/0.008571, allocations: 0.9971 MB / 276.5 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002865/0.008857, allocations: 219 kB / 276.7 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004518/0.009309, allocations: 0.538 MB / 277.3 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003515/0.00966, allocations: 423 kB / 277.7 MB, free: 12.92 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.291e-05/0.009733, allocations: 79.98 kB / 277.7 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001607/0.009894, allocations: 135.9 kB / 277.9 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002304/0.01012, allocations: 482.6 kB / 278.3 MB, free: 12.24 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002798/0.0104, allocations: 390.8 kB / 278.7 MB, free: 11.86 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007667/0.01117, allocations: 1.082 MB / 279.8 MB, free: 10.77 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.533e-06/0.01117, allocations: 0 / 279.8 MB, free: 10.77 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.91e-07/0.01117, allocations: 0 / 279.8 MB, free: 10.77 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.231e-05/0.01119, allocations: 0 / 279.8 MB, free: 10.77 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.001388/0.01257, allocations: 1.65 MB / 281.5 MB, free: 9.082 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.881e-05/0.0126, allocations: 8.031 kB / 281.5 MB, free: 9.074 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001378/0.01274, allocations: 136.8 kB / 281.6 MB, free: 8.941 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006994/0.01344, allocations: 0.6605 MB / 282.3 MB, free: 8.246 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.557e-05/0.01354, allocations: 178.1 kB / 282.4 MB, free: 8.043 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.478e-05/0.01359, allocations: 60.31 kB / 282.5 MB, free: 7.984 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005043/0.01409, allocations: 0.8077 MB / 283.3 MB, free: 7.039 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.0141, allocations: 4 kB / 283.3 MB, free: 7.035 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.144e-05/0.01414, allocations: 24 kB / 283.3 MB, free: 7.012 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.01414, allocations: 15.94 kB / 283.3 MB, free: 6.996 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001617/0.01431, allocations: 122.9 kB / 283.5 MB, free: 6.875 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001563/0.01587, allocations: 1.628 MB / 285.1 MB, free: 5.188 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002878/0.01616, allocations: 206.4 kB / 285.3 MB, free: 4.977 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002029/0.01636, allocations: 160.8 kB / 285.5 MB, free: 4.816 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.903e-05/0.01638, allocations: 7.984 kB / 285.5 MB, free: 4.809 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.361e-05/0.0164, allocations: 42.56 kB / 285.5 MB, free: 4.758 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.272e-06/0.0164, allocations: 4 kB / 285.5 MB, free: 4.754 MB / 266.7 MB Notification: Performance of matching and sorting (n=30): time 0.0005266/0.01693, allocations: 330.6 kB / 285.8 MB, free: 4.422 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.401e-05/0.017, allocations: 269 kB / 286.1 MB, free: 4.098 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009219/0.01793, allocations: 1.324 MB / 287.4 MB, free: 2.75 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.447e-05/0.01795, allocations: 37.62 kB / 287.5 MB, free: 2.707 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001717/0.01812, allocations: 389.5 kB / 287.8 MB, free: 2.32 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.007e-05/0.01817, allocations: 107.1 kB / 287.9 MB, free: 2.215 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.041e-05/0.01825, allocations: 77.98 kB / 288 MB, free: 2.129 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.208e-05/0.01832, allocations: 325.9 kB / 288.3 MB, free: 1.805 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.616e-05/0.01838, allocations: 36.73 kB / 288.4 MB, free: 1.77 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001639/0.01854, allocations: 381.1 kB / 288.7 MB, free: 1.293 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002476/0.01879, allocations: 190.9 kB / 288.9 MB, free: 1.074 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.01879, allocations: 0 / 288.9 MB, free: 1.074 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003397/0.01913, allocations: 305.8 kB / 289.2 MB, free: 0.7656 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.176e-05/0.01915, allocations: 10.97 kB / 289.2 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.117e-06/0.01915, allocations: 4 kB / 289.2 MB, free: 0.7539 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001191/0.01927, allocations: 44.81 kB / 289.3 MB, free: 0.707 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001696/0.01944, allocations: 79.89 kB / 289.4 MB, free: 0.6289 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1037/0.1232, allocations: 1.419 MB / 290.8 MB, free: 26.53 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004306/0.1236, allocations: 45.44 kB / 290.8 MB, free: 26.53 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.671e-05/0.1236, allocations: 11.98 kB / 290.8 MB, free: 26.53 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.0002793/0.1239, allocations: 145.5 kB / 291 MB, free: 26.41 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001503/0.1241, allocations: 82.73 kB / 291.1 MB, free: 26.41 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001566/0.1242, allocations: 124.3 kB / 291.2 MB, free: 26.39 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.1242, allocations: 3.438 kB / 291.2 MB, free: 26.39 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.1242, allocations: 0.5625 kB / 291.2 MB, free: 26.39 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.1242, allocations: 1.266 kB / 291.2 MB, free: 26.39 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001335/0.1256, allocations: 0.801 MB / 292 MB, free: 26.17 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/0.1256, allocations: 5.25 kB / 292 MB, free: 26.17 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00022/0.1258, allocations: 65.09 kB / 292.1 MB, free: 26.17 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000111/0.1259, allocations: 36.02 kB / 292.1 MB, free: 26.16 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.155e-05/0.1259, allocations: 6.672 kB / 292.1 MB, free: 26.16 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006559/0.1266, allocations: 1.39 MB / 293.5 MB, free: 24.9 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.1266, allocations: 4.344 kB / 293.5 MB, free: 24.9 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005492/0.1271, allocations: 425.9 kB / 293.9 MB, free: 24.73 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002711/0.1274, allocations: 169.3 kB / 294.1 MB, free: 24.73 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000103/0.1275, allocations: 11.83 kB / 294.1 MB, free: 24.73 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002687/0.1278, allocations: 35.91 kB / 294.1 MB, free: 24.73 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.385e-05/0.1278, allocations: 29.39 kB / 294.2 MB, free: 24.73 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.753e-05/0.1279, allocations: 8.469 kB / 294.2 MB, free: 24.73 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000895/0.1288, allocations: 0.7219 MB / 294.9 MB, free: 24.67 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1288, allocations: 3.406 kB / 294.9 MB, free: 24.67 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006623/0.1294, allocations: 207.9 kB / 295.1 MB, free: 24.67 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.001439/0.1309, allocations: 0.575 MB / 295.7 MB, free: 24.54 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004489/0.1313, allocations: 294 kB / 295.9 MB, free: 24.41 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.669e-05/0.1313, allocations: 14.91 kB / 296 MB, free: 24.41 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000203/0.1315, allocations: 219.8 kB / 296.2 MB, free: 24.29 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006236/0.1322, allocations: 202 kB / 296.4 MB, free: 24.26 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00279/0.135, allocations: 2.053 MB / 298.4 MB, free: 23.33 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002917/0.1352, allocations: 293.7 kB / 298.7 MB, free: 23.25 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003118/0.1356, allocations: 121.9 kB / 298.8 MB, free: 23.23 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004629/0.136, allocations: 257.2 kB / 299.1 MB, free: 23.17 MB / 266.7 MB Notification: Performance of SimCode: time 8.11e-07/0.136, allocations: 0 / 299.1 MB, free: 23.17 MB / 266.7 MB Notification: Performance of Templates: time 0.02027/0.1563, allocations: 14.81 MB / 313.9 MB, free: 14.04 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: 2.911002455279231]