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.001145/0.001145, allocations: 84 kB / 21.43 MB, free: 3.133 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.005618/0.005618, allocations: 145.1 kB / 24.68 MB, free: 8.895 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.7995/0.7995, allocations: 173.4 MB / 201.2 MB, free: 9.43 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.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 1.262e-06/1.262e-06, allocations: 0 / 319.7 MB, free: 5.871 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.711e-05/1.837e-05, allocations: 6.281 kB / 319.7 MB, free: 5.863 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.003314/0.003333, allocations: 3.65 MB / 323.3 MB, free: 2.191 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001712/0.005045, allocations: 1.796 MB / 325.1 MB, free: 396 kB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001796/0.005224, allocations: 11.94 kB / 325.1 MB, free: 384 kB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000836/0.00606, allocations: 0.5795 MB / 325.7 MB, free: 15.79 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003571/0.006417, allocations: 366 kB / 326.1 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003544/0.006772, allocations: 290.5 kB / 326.4 MB, free: 15.15 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000696/0.007468, allocations: 1.005 MB / 327.4 MB, free: 14.14 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002616/0.007729, allocations: 217 kB / 327.6 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003469/0.008076, allocations: 0.538 MB / 328.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003398/0.008416, allocations: 447 kB / 328.5 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.699e-05/0.008483, allocations: 80 kB / 328.6 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000138/0.008621, allocations: 127.9 kB / 328.7 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002237/0.008845, allocations: 482.6 kB / 329.2 MB, free: 12.28 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002241/0.009069, allocations: 386.9 kB / 329.6 MB, free: 11.9 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001039/0.01011, allocations: 1.729 MB / 331.3 MB, free: 10.16 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.465e-06/0.01011, allocations: 0 / 331.3 MB, free: 10.16 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.534e-06/0.01011, allocations: 4 kB / 331.3 MB, free: 10.16 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.093e-05/0.01012, allocations: 0 / 331.3 MB, free: 10.16 MB / 298.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.001739/0.01186, allocations: 1.772 MB / 333.1 MB, free: 8.348 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/0.0119, allocations: 8.922 kB / 333.1 MB, free: 8.34 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001485/0.01205, allocations: 171.9 kB / 333.3 MB, free: 8.172 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001073/0.01312, allocations: 1.133 MB / 334.4 MB, free: 7.004 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001168/0.01324, allocations: 170.1 kB / 334.6 MB, free: 6.809 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.559e-05/0.01329, allocations: 48.38 kB / 334.6 MB, free: 6.762 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007908/0.01408, allocations: 1.019 MB / 335.6 MB, free: 5.609 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.417e-05/0.0141, allocations: 0 / 335.6 MB, free: 5.609 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.844e-05/0.01414, allocations: 24 kB / 335.7 MB, free: 5.586 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.01415, allocations: 12 kB / 335.7 MB, free: 5.574 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005051/0.01465, allocations: 435.7 kB / 336.1 MB, free: 5.148 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00232/0.01697, allocations: 2.518 MB / 338.6 MB, free: 2.547 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005548/0.01753, allocations: 402.4 kB / 339 MB, free: 2.145 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003637/0.01789, allocations: 288.7 kB / 339.3 MB, free: 1.859 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.774e-05/0.01791, allocations: 4 kB / 339.3 MB, free: 1.855 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.179e-05/0.01793, allocations: 42.56 kB / 339.3 MB, free: 1.805 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 1.302e-06/0.01793, allocations: 0 / 339.3 MB, free: 1.805 MB / 298.7 MB Notification: Performance of matching and sorting (n=30): time 0.0009851/0.01892, allocations: 0.6852 MB / 340 MB, free: 1.109 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.664e-05/0.019, allocations: 261 kB / 340.3 MB, free: 0.793 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001633/0.02064, allocations: 2.209 MB / 342.5 MB, free: 14.56 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.422e-05/0.02066, allocations: 33.7 kB / 342.5 MB, free: 14.52 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003584/0.02102, allocations: 0.6509 MB / 343.2 MB, free: 13.86 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.897e-05/0.02108, allocations: 111 kB / 343.3 MB, free: 13.76 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.756e-05/0.02116, allocations: 78.03 kB / 343.4 MB, free: 13.67 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.051e-05/0.02124, allocations: 326 kB / 343.7 MB, free: 13.35 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001907/0.02144, allocations: 164.5 kB / 343.8 MB, free: 13.19 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003116/0.02175, allocations: 0.5021 MB / 344.3 MB, free: 12.58 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000399/0.02215, allocations: 393.3 kB / 344.7 MB, free: 12.17 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.02215, allocations: 0 / 344.7 MB, free: 12.17 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000696/0.02284, allocations: 0.6452 MB / 345.4 MB, free: 11.51 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.02286, allocations: 8 kB / 345.4 MB, free: 11.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.02286, allocations: 0 / 345.4 MB, free: 11.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001898/0.02305, allocations: 72.73 kB / 345.4 MB, free: 11.43 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002015/0.02326, allocations: 96 kB / 345.5 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001016/0.02427, allocations: 1.637 MB / 347.2 MB, free: 9.598 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002019/0.02447, allocations: 51.77 kB / 347.2 MB, free: 9.547 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.824e-05/0.02449, allocations: 11.98 kB / 347.2 MB, free: 9.535 MB / 314.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 (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.0003613/0.02485, allocations: 489.5 kB / 347.7 MB, free: 9.047 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001051/0.02496, allocations: 135.1 kB / 347.8 MB, free: 8.914 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001158/0.02507, allocations: 157.2 kB / 348 MB, free: 8.758 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.02508, allocations: 4 kB / 348 MB, free: 8.754 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-06/0.02508, allocations: 0 / 348 MB, free: 8.754 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.95e-06/0.02508, allocations: 8.047 kB / 348 MB, free: 8.746 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001411/0.02649, allocations: 1.427 MB / 349.4 MB, free: 7.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.155e-06/0.0265, allocations: 0 / 349.4 MB, free: 7.27 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000161/0.02666, allocations: 63.95 kB / 349.5 MB, free: 7.207 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001077/0.02676, allocations: 60.88 kB / 349.6 MB, free: 7.145 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.844e-05/0.02678, allocations: 11.94 kB / 349.6 MB, free: 7.133 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008833/0.02767, allocations: 1.59 MB / 351.2 MB, free: 5.438 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.02767, allocations: 4.094 kB / 351.2 MB, free: 5.434 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000791/0.02846, allocations: 0.8037 MB / 352 MB, free: 4.602 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002829/0.02874, allocations: 255 kB / 352.2 MB, free: 4.352 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.138e-05/0.0288, allocations: 12 kB / 352.2 MB, free: 4.34 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002138/0.02902, allocations: 47.95 kB / 352.3 MB, free: 4.293 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.114e-05/0.02908, allocations: 31.94 kB / 352.3 MB, free: 4.262 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.554e-05/0.02909, allocations: 11.94 kB / 352.3 MB, free: 4.25 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001185/0.03028, allocations: 1.575 MB / 353.9 MB, free: 2.676 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.03028, allocations: 0 / 353.9 MB, free: 2.676 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004052/0.03068, allocations: 207.6 kB / 354.1 MB, free: 2.473 MB / 314.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.0007606/0.03144, allocations: 0.5031 MB / 354.6 MB, free: 2.184 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000629/0.03207, allocations: 486.9 kB / 355.1 MB, free: 1.695 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.03208, allocations: 4 kB / 355.1 MB, free: 1.691 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002807/0.03236, allocations: 299.1 kB / 355.4 MB, free: 1.387 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005016/0.03286, allocations: 185.7 kB / 355.6 MB, free: 1.203 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002361/0.03522, allocations: 2.629 MB / 358.2 MB, free: 14.53 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004514/0.03567, allocations: 0.6561 MB / 358.8 MB, free: 13.84 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001378/0.03581, allocations: 76.48 kB / 358.9 MB, free: 13.77 MB / 330.7 MB Notification: Performance of SimCode: time 7.22e-07/0.03581, allocations: 0 / 358.9 MB, free: 13.77 MB / 330.7 MB Notification: Performance of Templates: time 0.01554/0.05135, allocations: 21.18 MB / 380.1 MB, free: 8.609 MB / 346.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=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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 5.4445115607231855]