Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001528/0.001528, allocations: 85.58 kB / 20.68 MB, free: 1.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001486/0.001486, allocations: 157.5 kB / 23.95 MB, free: 4.168 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 177 MB / 204.1 MB, free: 9.18 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.833e-06/1.833e-06, allocations: 0 / 325 MB, free: 348 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.507e-05/2.69e-05, allocations: 3.219 kB / 325 MB, free: 344 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007319/0.007346, allocations: 4.95 MB / 329.9 MB, free: 13.03 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004508/0.01185, allocations: 1.808 MB / 331.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004567/0.01231, allocations: 18.94 kB / 331.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001328/0.01364, allocations: 0.5147 MB / 332.3 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009607/0.0146, allocations: 405.9 kB / 332.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009637/0.01556, allocations: 376.6 kB / 333.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001084/0.01665, allocations: 0.928 MB / 334 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004594/0.01711, allocations: 221.7 kB / 334.2 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006982/0.01781, allocations: 0.5221 MB / 334.7 MB, free: 9.914 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005383/0.01834, allocations: 376.6 kB / 335.1 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001158/0.01846, allocations: 78.09 kB / 335.2 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002325/0.01869, allocations: 121.2 kB / 335.3 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005058/0.0192, allocations: 0.5973 MB / 335.9 MB, free: 9.348 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005141/0.01971, allocations: 430.2 kB / 336.3 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002245/0.02196, allocations: 2.066 MB / 338.4 MB, free: 7.578 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.02196, allocations: 0 / 338.4 MB, free: 7.578 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.02196, allocations: 0 / 338.4 MB, free: 7.578 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.981e-05/0.02199, allocations: 0 / 338.4 MB, free: 7.578 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.003489/0.02548, allocations: 2.054 MB / 340.4 MB, free: 5.484 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.02552, allocations: 11.98 kB / 340.4 MB, free: 5.473 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003223/0.02584, allocations: 203.6 kB / 340.6 MB, free: 5.273 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002498/0.02834, allocations: 1.458 MB / 342.1 MB, free: 3.785 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001208/0.02846, allocations: 92.95 kB / 342.2 MB, free: 3.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.879e-05/0.02854, allocations: 48.38 kB / 342.2 MB, free: 3.633 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00131/0.02985, allocations: 0.8405 MB / 343.1 MB, free: 2.684 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.729e-05/0.02987, allocations: 0 / 343.1 MB, free: 2.684 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.122e-05/0.02993, allocations: 20 kB / 343.1 MB, free: 2.664 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.42e-05/0.02994, allocations: 16 kB / 343.1 MB, free: 2.648 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007795/0.03072, allocations: 343.7 kB / 343.4 MB, free: 2.312 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004686/0.03541, allocations: 2.835 MB / 346.3 MB, free: 15.38 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001418/0.03682, allocations: 354.3 kB / 346.6 MB, free: 15.03 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005149/0.03734, allocations: 173.1 kB / 346.8 MB, free: 14.86 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.587e-05/0.03738, allocations: 7.938 kB / 346.8 MB, free: 14.85 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.434e-05/0.03741, allocations: 34.56 kB / 346.8 MB, free: 14.81 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.893e-06/0.03741, allocations: 3.938 kB / 346.8 MB, free: 14.8 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001998/0.03941, allocations: 0.6299 MB / 347.5 MB, free: 14.16 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001561/0.03957, allocations: 213.6 kB / 347.7 MB, free: 13.91 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004249/0.04382, allocations: 2.869 MB / 350.5 MB, free: 10.99 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.513e-05/0.04387, allocations: 29.7 kB / 350.6 MB, free: 10.95 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00085/0.04472, allocations: 0.8013 MB / 351.4 MB, free: 10.14 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.84e-05/0.0448, allocations: 71.39 kB / 351.4 MB, free: 10.07 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001292/0.04493, allocations: 65.98 kB / 351.5 MB, free: 10 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.04509, allocations: 326 kB / 351.8 MB, free: 9.68 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003725/0.04546, allocations: 120.6 kB / 351.9 MB, free: 9.562 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006011/0.04606, allocations: 449.7 kB / 352.4 MB, free: 9.02 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008318/0.04689, allocations: 354.3 kB / 352.7 MB, free: 8.621 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.053e-06/0.0469, allocations: 4 kB / 352.7 MB, free: 8.617 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001358/0.04826, allocations: 0.5575 MB / 353.3 MB, free: 8.051 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/0.04828, allocations: 8 kB / 353.3 MB, free: 8.043 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.846e-06/0.04829, allocations: 4.375 kB / 353.3 MB, free: 8.039 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003034/0.04859, allocations: 60.77 kB / 353.4 MB, free: 7.977 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003257/0.04892, allocations: 71.89 kB / 353.4 MB, free: 7.906 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00197/0.05089, allocations: 1.59 MB / 355 MB, free: 6.219 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006202/0.05151, allocations: 67.64 kB / 355.1 MB, free: 6.152 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.679e-05/0.05153, allocations: 12 kB / 355.1 MB, free: 6.141 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 4 (cccvCharger.CV,energy.local_reset,cell.limIntegrator.local_reset,cell.cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * 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 prepare postOptimizeDAE: time 0.00112/0.05265, allocations: 0.5825 MB / 355.7 MB, free: 5.551 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002869/0.05294, allocations: 167 kB / 355.8 MB, free: 5.387 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001329/0.05427, allocations: 0.5098 MB / 356.4 MB, free: 4.867 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.05427, allocations: 4 kB / 356.4 MB, free: 4.863 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-06/0.05427, allocations: 0 / 356.4 MB, free: 4.863 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.05428, allocations: 0 / 356.4 MB, free: 4.863 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002861/0.05714, allocations: 1.426 MB / 357.8 MB, free: 3.391 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.05714, allocations: 0 / 357.8 MB, free: 3.391 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002531/0.0574, allocations: 47.84 kB / 357.8 MB, free: 3.344 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001905/0.05759, allocations: 48.83 kB / 357.9 MB, free: 3.293 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.257e-05/0.05761, allocations: 12.02 kB / 357.9 MB, free: 3.281 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001712/0.05932, allocations: 1.539 MB / 359.4 MB, free: 1.637 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.05933, allocations: 4.031 kB / 359.4 MB, free: 1.633 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001611/0.06094, allocations: 0.7077 MB / 360.1 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005978/0.06153, allocations: 310.8 kB / 360.4 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001291/0.06166, allocations: 4 kB / 360.4 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004336/0.0621, allocations: 47.95 kB / 360.5 MB, free: 0.543 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001049/0.0622, allocations: 39.88 kB / 360.5 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.849e-05/0.06222, allocations: 4 kB / 360.5 MB, free: 0.5 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.003095/0.06532, allocations: 2.043 MB / 362.6 MB, free: 14.43 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.06532, allocations: 0 / 362.6 MB, free: 14.43 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000846/0.06616, allocations: 211.5 kB / 362.8 MB, free: 14.22 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (cell.cell.limIntegrator.y,cell.limIntegrator.y,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 (18): * Single equations (assignments): 17 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001411/0.06757, allocations: 374.6 kB / 363.1 MB, free: 13.98 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001145/0.06872, allocations: 438.4 kB / 363.6 MB, free: 13.54 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.06872, allocations: 0 / 363.6 MB, free: 13.54 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005732/0.06929, allocations: 259.2 kB / 363.8 MB, free: 13.27 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001074/0.07037, allocations: 205.8 kB / 364 MB, free: 13.07 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005238/0.07561, allocations: 2.982 MB / 367 MB, free: 10.05 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009662/0.07657, allocations: 0.7665 MB / 367.8 MB, free: 9.246 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005242/0.0771, allocations: 250.1 kB / 368 MB, free: 8.996 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002578/0.07735, allocations: 80.5 kB / 368.1 MB, free: 8.918 MB / 334.1 MB Notification: Performance of SimCode: time 8.52e-07/0.07736, allocations: 0 / 368.1 MB, free: 8.918 MB / 334.1 MB Notification: Performance of Templates: time 0.03065/0.108, allocations: 15.53 MB / 383.6 MB, free: 9.473 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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: 4.918875481933355]