Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.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.001267/0.001267, allocations: 87.62 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.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.005312/0.005312, allocations: 164 kB / 24.7 MB, free: 8.891 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 0.8407/0.8407, allocations: 177.1 MB / 205 MB, free: 5.734 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.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.1.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.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.994e-06/1.994e-06, allocations: 0 / 325.8 MB, free: 15.44 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.026e-05/3.225e-05, allocations: 4.812 kB / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006176/0.006209, allocations: 3.717 MB / 329.5 MB, free: 11.7 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003544/0.009753, allocations: 1.943 MB / 331.5 MB, free: 9.742 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005065/0.01026, allocations: 11.94 kB / 331.5 MB, free: 9.73 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00144/0.0117, allocations: 0.5756 MB / 332.1 MB, free: 9.152 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009851/0.01269, allocations: 401.8 kB / 332.5 MB, free: 8.758 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007646/0.01345, allocations: 294.8 kB / 332.7 MB, free: 8.473 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001307/0.01476, allocations: 1.013 MB / 333.8 MB, free: 7.457 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004516/0.01521, allocations: 209 kB / 334 MB, free: 7.25 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009205/0.01613, allocations: 0.5457 MB / 334.5 MB, free: 6.703 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009781/0.01711, allocations: 447 kB / 334.9 MB, free: 6.266 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000126/0.01723, allocations: 80 kB / 335 MB, free: 6.188 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001944/0.01743, allocations: 131.9 kB / 335.1 MB, free: 6.059 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002218/0.01765, allocations: 490.6 kB / 335.6 MB, free: 5.578 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002434/0.01789, allocations: 390.8 kB / 336 MB, free: 5.195 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00108/0.01897, allocations: 1.725 MB / 337.7 MB, free: 3.465 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.01898, allocations: 4 kB / 337.7 MB, free: 3.461 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.01898, allocations: 0 / 337.7 MB, free: 3.461 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.028e-05/0.01899, allocations: 0 / 337.7 MB, free: 3.461 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.001598/0.02059, allocations: 1.787 MB / 339.5 MB, free: 1.633 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.981e-05/0.02062, allocations: 12.03 kB / 339.5 MB, free: 1.621 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001364/0.02075, allocations: 171.9 kB / 339.7 MB, free: 1.453 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009905/0.02174, allocations: 1.133 MB / 340.8 MB, free: 288 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.408e-05/0.02184, allocations: 174.1 kB / 341 MB, free: 84 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.964e-05/0.02189, allocations: 48.38 kB / 341.1 MB, free: 36 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009744/0.02286, allocations: 1.019 MB / 342.1 MB, free: 14.89 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.02287, allocations: 0 / 342.1 MB, free: 14.89 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.111e-05/0.0229, allocations: 24 kB / 342.1 MB, free: 14.86 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.313e-06/0.02291, allocations: 15.94 kB / 342.1 MB, free: 14.85 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004523/0.02336, allocations: 439.6 kB / 342.5 MB, free: 14.41 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002132/0.02549, allocations: 2.522 MB / 345.1 MB, free: 11.81 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004978/0.02599, allocations: 398.4 kB / 345.4 MB, free: 11.41 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003438/0.02634, allocations: 303 kB / 345.7 MB, free: 11.12 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.435e-05/0.02635, allocations: 0 / 345.7 MB, free: 11.12 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.833e-05/0.02637, allocations: 46.5 kB / 345.8 MB, free: 11.06 MB / 314.7 MB Notification: Performance of pre-optimization done (n=30): time 9.82e-07/0.02637, allocations: 0 / 345.8 MB, free: 11.06 MB / 314.7 MB Notification: Performance of matching and sorting (n=30): time 0.0009424/0.02731, allocations: 0.6969 MB / 346.5 MB, free: 10.36 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.161e-05/0.02738, allocations: 261 kB / 346.7 MB, free: 10.04 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001589/0.02897, allocations: 2.21 MB / 349 MB, free: 7.812 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.426e-05/0.029, allocations: 37.7 kB / 349 MB, free: 7.77 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005805/0.02958, allocations: 0.6549 MB / 349.6 MB, free: 7.105 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.411e-05/0.02963, allocations: 115 kB / 349.8 MB, free: 6.992 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.879e-05/0.02971, allocations: 78.06 kB / 349.8 MB, free: 6.906 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.671e-05/0.02978, allocations: 318 kB / 350.1 MB, free: 6.59 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001836/0.02996, allocations: 160.7 kB / 350.3 MB, free: 6.434 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002923/0.03025, allocations: 0.498 MB / 350.8 MB, free: 5.832 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003813/0.03063, allocations: 396.3 kB / 351.2 MB, free: 5.414 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.03064, allocations: 0 / 351.2 MB, free: 5.414 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006865/0.03132, allocations: 0.6566 MB / 351.8 MB, free: 4.746 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/0.03134, allocations: 8 kB / 351.8 MB, free: 4.738 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.03134, allocations: 4 kB / 351.9 MB, free: 4.734 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001896/0.03153, allocations: 60.81 kB / 351.9 MB, free: 4.672 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001832/0.03172, allocations: 99.98 kB / 352 MB, free: 4.574 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009621/0.03268, allocations: 1.629 MB / 353.6 MB, free: 2.848 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000193/0.03287, allocations: 51.78 kB / 353.7 MB, free: 2.797 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.669e-05/0.03289, allocations: 12 kB / 353.7 MB, free: 2.785 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.0003547/0.03324, allocations: 493.4 kB / 354.2 MB, free: 2.293 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001011/0.03334, allocations: 135.2 kB / 354.3 MB, free: 2.16 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001098/0.03345, allocations: 165.3 kB / 354.5 MB, free: 1.996 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.03346, allocations: 4 kB / 354.5 MB, free: 1.992 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.734e-06/0.03346, allocations: 0 / 354.5 MB, free: 1.992 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.227e-06/0.03346, allocations: 12.05 kB / 354.5 MB, free: 1.98 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001391/0.03485, allocations: 1.424 MB / 355.9 MB, free: 0.5078 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.03486, allocations: 3.984 kB / 355.9 MB, free: 0.5039 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001601/0.03502, allocations: 67.89 kB / 356 MB, free: 448 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001043/0.03512, allocations: 56.89 kB / 356 MB, free: 388 kB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.81e-05/0.03514, allocations: 11.98 kB / 356.1 MB, free: 376 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001101/0.03624, allocations: 1.582 MB / 357.6 MB, free: 14.68 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.03624, allocations: 4.094 kB / 357.6 MB, free: 14.68 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007749/0.03702, allocations: 0.8029 MB / 358.4 MB, free: 13.85 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002901/0.03731, allocations: 259 kB / 358.7 MB, free: 13.59 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.068e-05/0.03737, allocations: 8.125 kB / 358.7 MB, free: 13.59 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002132/0.03758, allocations: 51.95 kB / 358.8 MB, free: 13.54 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.059e-05/0.03764, allocations: 27.95 kB / 358.8 MB, free: 13.51 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.444e-05/0.03765, allocations: 15.92 kB / 358.8 MB, free: 13.49 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001205/0.03886, allocations: 1.579 MB / 360.4 MB, free: 11.91 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.03886, allocations: 0 / 360.4 MB, free: 11.91 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004103/0.03927, allocations: 215.5 kB / 360.6 MB, free: 11.7 MB / 330.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.0008265/0.0401, allocations: 0.4972 MB / 361.1 MB, free: 11.41 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006048/0.0407, allocations: 494.5 kB / 361.6 MB, free: 10.91 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.0407, allocations: 0 / 361.6 MB, free: 10.91 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002681/0.04097, allocations: 291.2 kB / 361.9 MB, free: 10.62 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004997/0.04147, allocations: 188.5 kB / 362 MB, free: 10.43 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002605/0.04408, allocations: 2.649 MB / 364.7 MB, free: 7.738 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004291/0.04451, allocations: 0.6603 MB / 365.3 MB, free: 7.047 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001308/0.04464, allocations: 68.48 kB / 365.4 MB, free: 6.98 MB / 330.7 MB Notification: Performance of SimCode: time 9.62e-07/0.04464, allocations: 0 / 365.4 MB, free: 6.98 MB / 330.7 MB Notification: Performance of Templates: time 0.01683/0.06147, allocations: 21.27 MB / 386.7 MB, free: 1.738 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.048115503042936]