Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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.00136/0.00136, allocations: 80.41 kB / 22.21 MB, free: 2.289 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.00116/0.00116, allocations: 174 kB / 25.61 MB, free: 8.926 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.9683/0.9683, allocations: 177.1 MB / 206.1 MB, free: 4.465 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.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.0_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_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.022e-06/1.022e-06, allocations: 0 / 274.2 MB, free: 4.426 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.651e-05/1.753e-05, allocations: 2.312 kB / 274.2 MB, free: 4.422 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.004397/0.004415, allocations: 5.321 MB / 279.5 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002012/0.006427, allocations: 1.827 MB / 281.3 MB, free: 13.26 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001845/0.006611, allocations: 19.88 kB / 281.3 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00056/0.007171, allocations: 0.5172 MB / 281.9 MB, free: 12.72 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004036/0.007575, allocations: 405.7 kB / 282.3 MB, free: 12.32 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004093/0.007984, allocations: 371.3 kB / 282.6 MB, free: 11.96 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005725/0.008556, allocations: 0.9235 MB / 283.5 MB, free: 11.03 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002745/0.008831, allocations: 217.3 kB / 283.8 MB, free: 10.82 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003715/0.009202, allocations: 0.5262 MB / 284.3 MB, free: 10.29 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003122/0.009515, allocations: 387.1 kB / 284.7 MB, free: 9.91 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.806e-05/0.009583, allocations: 79.94 kB / 284.7 MB, free: 9.832 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000124/0.009707, allocations: 119.9 kB / 284.9 MB, free: 9.715 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002878/0.009994, allocations: 0.5961 MB / 285.4 MB, free: 9.117 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002792/0.01027, allocations: 434.6 kB / 285.9 MB, free: 8.691 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007965/0.01107, allocations: 1.203 MB / 287.1 MB, free: 7.484 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.774e-06/0.01107, allocations: 0 / 287.1 MB, free: 7.484 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.21e-07/0.01107, allocations: 0 / 287.1 MB, free: 7.484 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.105e-05/0.01108, allocations: 0 / 287.1 MB, free: 7.484 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.001752/0.01284, allocations: 2.187 MB / 289.3 MB, free: 5.25 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.743e-05/0.01286, allocations: 12.03 kB / 289.3 MB, free: 5.238 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000194/0.01306, allocations: 239.6 kB / 289.5 MB, free: 5.004 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008069/0.01386, allocations: 0.9612 MB / 290.5 MB, free: 4.012 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.932e-05/0.01393, allocations: 88.97 kB / 290.6 MB, free: 3.91 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.291e-05/0.01399, allocations: 55.94 kB / 290.6 MB, free: 3.855 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004994/0.01449, allocations: 0.705 MB / 291.3 MB, free: 3.027 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.0145, allocations: 0 / 291.3 MB, free: 3.027 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.252e-05/0.01453, allocations: 28 kB / 291.3 MB, free: 3 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.01454, allocations: 12 kB / 291.4 MB, free: 2.988 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000165/0.01471, allocations: 138.8 kB / 291.5 MB, free: 2.852 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002026/0.01673, allocations: 2.599 MB / 294.1 MB, free: 156 kB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003268/0.01706, allocations: 217.9 kB / 294.3 MB, free: 15.93 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001285/0.01719, allocations: 87.95 kB / 294.4 MB, free: 15.84 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.914e-05/0.01721, allocations: 7.984 kB / 294.4 MB, free: 15.83 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.419e-05/0.01723, allocations: 41.39 kB / 294.4 MB, free: 15.78 MB / 282.7 MB Notification: Performance of pre-optimization done (n=21): time 1.002e-06/0.01723, allocations: 0 / 294.4 MB, free: 15.78 MB / 282.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005715/0.0178, allocations: 398 kB / 294.8 MB, free: 15.38 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.478e-05/0.01787, allocations: 225.5 kB / 295 MB, free: 15.11 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001531/0.0194, allocations: 1.915 MB / 297 MB, free: 13.14 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.213e-05/0.01942, allocations: 29.7 kB / 297 MB, free: 13.11 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005996/0.02002, allocations: 0.99 MB / 298 MB, free: 12.11 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.405e-05/0.02006, allocations: 75.33 kB / 298.1 MB, free: 12.04 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.838e-05/0.02014, allocations: 79.61 kB / 298.1 MB, free: 11.95 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.02026, allocations: 0.4925 MB / 298.6 MB, free: 11.45 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.092e-05/0.02031, allocations: 36.56 kB / 298.7 MB, free: 11.41 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001913/0.0205, allocations: 408.2 kB / 299.1 MB, free: 10.88 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001891/0.02069, allocations: 261.1 kB / 299.3 MB, free: 10.56 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.02069, allocations: 0 / 299.3 MB, free: 10.56 MB / 282.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003798/0.02107, allocations: 407.9 kB / 299.7 MB, free: 10.15 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/0.02109, allocations: 8 kB / 299.7 MB, free: 10.14 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.0211, allocations: 4 kB / 299.7 MB, free: 10.14 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001318/0.02123, allocations: 39.61 kB / 299.8 MB, free: 10.09 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000148/0.02137, allocations: 75.83 kB / 299.8 MB, free: 10.02 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009731/0.02235, allocations: 2.06 MB / 301.9 MB, free: 7.852 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001994/0.02255, allocations: 51.66 kB / 301.9 MB, free: 7.801 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.828e-05/0.02257, allocations: 16 kB / 302 MB, free: 7.785 MB / 282.7 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 (cell.cell.limIntegrator.local_reset,cell.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 (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.000174/0.02274, allocations: 180.4 kB / 302.1 MB, free: 7.598 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001292/0.02287, allocations: 170.9 kB / 302.3 MB, free: 7.43 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003631/0.02323, allocations: 311.9 kB / 302.6 MB, free: 7.113 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.02324, allocations: 3.984 kB / 302.6 MB, free: 7.109 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.532e-06/0.02324, allocations: 0 / 302.6 MB, free: 7.109 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.02324, allocations: 4 kB / 302.6 MB, free: 7.105 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001112/0.02435, allocations: 1.141 MB / 303.8 MB, free: 5.918 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.02435, allocations: 4 kB / 303.8 MB, free: 5.914 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001064/0.02446, allocations: 35.98 kB / 303.8 MB, free: 5.879 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.437e-05/0.02452, allocations: 35.66 kB / 303.8 MB, free: 5.84 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.023e-05/0.02453, allocations: 0 / 303.8 MB, free: 5.84 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008385/0.02537, allocations: 2.036 MB / 305.9 MB, free: 3.691 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.02537, allocations: 0 / 305.9 MB, free: 3.691 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004237/0.0258, allocations: 0.5214 MB / 306.4 MB, free: 3.137 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002483/0.02605, allocations: 238.8 kB / 306.6 MB, free: 2.902 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.874e-05/0.02612, allocations: 7.984 kB / 306.6 MB, free: 2.895 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000173/0.02629, allocations: 27.98 kB / 306.7 MB, free: 2.867 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.794e-05/0.02635, allocations: 31.94 kB / 306.7 MB, free: 2.836 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.224e-05/0.02636, allocations: 4 kB / 306.7 MB, free: 2.832 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0008451/0.0272, allocations: 1.05 MB / 307.7 MB, free: 1.758 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0272, allocations: 3.938 kB / 307.7 MB, free: 1.754 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004689/0.02767, allocations: 219.5 kB / 308 MB, free: 1.539 MB / 282.7 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.0007222/0.02839, allocations: 336.5 kB / 308.3 MB, free: 1.324 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003638/0.02876, allocations: 340 kB / 308.6 MB, free: 0.9766 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.02876, allocations: 4 kB / 308.6 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00018/0.02894, allocations: 260.6 kB / 308.9 MB, free: 0.6992 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000556/0.0295, allocations: 195.1 kB / 309.1 MB, free: 0.5039 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002659/0.03216, allocations: 2.383 MB / 311.5 MB, free: 14.07 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002544/0.03241, allocations: 346 kB / 311.8 MB, free: 13.7 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002469/0.03266, allocations: 150.2 kB / 311.9 MB, free: 13.55 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003587/0.03302, allocations: 290.1 kB / 312.2 MB, free: 13.27 MB / 298.7 MB Notification: Performance of SimCode: time 3.5e-07/0.03302, allocations: 0 / 312.2 MB, free: 13.27 MB / 298.7 MB Notification: Performance of Templates: time 0.02707/0.06008, allocations: 16.84 MB / 329.1 MB, free: 12.56 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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","",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.1205904241651297]