Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.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.00081/0.00081, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001191/0.002001, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 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.0007296/0.0007296, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009913/0.001721, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 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.002/1.002, allocations: 177.4 MB / 189.9 MB, free: 4.828 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08732/1.09, allocations: 53.87 MB / 243.7 MB, free: 14.9 MB / 250.7 MB " [Timeout remaining time 179] 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_StackRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|energy.y|stack.cell.[0-9,]+..cell.capacitor.[0-9,]+..v|stack.cell.[0-9,]+..cell.limIntegrator.y|stack.cell.[0-9,]+..limIntegrator.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_StackRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|energy.y|stack.cell.[0-9,]+..cell.capacitor.[0-9,]+..v|stack.cell.[0-9,]+..cell.limIntegrator.y|stack.cell.[0-9,]+..limIntegrator.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.413e-06/1.413e-06, allocations: 0 / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.352e-05/2.493e-05, allocations: 9.828 kB / 245 MB, free: 13.65 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_StackRC): time 0.01174/0.01176, allocations: 10.75 MB / 255.8 MB, free: 2.852 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00476/0.01652, allocations: 3.947 MB / 259.7 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005408/0.01706, allocations: 35.75 kB / 259.7 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002558/0.01962, allocations: 2.434 MB / 262.2 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008191/0.02044, allocations: 480.3 kB / 262.6 MB, free: 11.94 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007492/0.02119, allocations: 0.5147 MB / 263.2 MB, free: 11.43 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006061/0.02725, allocations: 9.882 MB / 273 MB, free: 1.52 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1305/0.1578, allocations: 2.703 MB / 275.7 MB, free: 6.195 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009439/0.1672, allocations: 6.876 MB / 282.6 MB, free: 5.852 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006311/0.1735, allocations: 3.929 MB / 286.5 MB, free: 5.852 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002753/0.1763, allocations: 0.9174 MB / 287.5 MB, free: 5.852 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002981/0.1793, allocations: 0.9701 MB / 288.4 MB, free: 5.852 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003929/0.1832, allocations: 5.326 MB / 293.8 MB, free: 5.066 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00876/0.192, allocations: 3.422 MB / 297.2 MB, free: 3.039 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0152/0.2072, allocations: 15.44 MB / 312.6 MB, free: 5.219 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.945e-05/0.2072, allocations: 0 / 312.6 MB, free: 5.219 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2072, allocations: 0 / 312.6 MB, free: 5.219 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0007332/0.2079, allocations: 0 / 312.6 MB, free: 5.219 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1013 * Number of variables: 1013 Notification: Performance of Generate backend data structure: time 0.03098/0.2389, allocations: 19.35 MB / 332 MB, free: 2.715 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.2389, allocations: 8.625 kB / 332 MB, free: 2.707 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003899/0.2428, allocations: 1.3 MB / 333.3 MB, free: 1.406 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02197/0.2648, allocations: 12.13 MB / 345.4 MB, free: 5.594 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006187/0.2654, allocations: 0.8625 MB / 346.3 MB, free: 4.609 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00135/0.2668, allocations: 435.1 kB / 346.7 MB, free: 4.188 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005847/0.2726, allocations: 5.863 MB / 352.6 MB, free: 13.76 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.753e-05/0.2727, allocations: 3.469 kB / 352.6 MB, free: 13.76 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003892/0.2731, allocations: 180 kB / 352.7 MB, free: 13.58 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.009e-05/0.2731, allocations: 96 kB / 352.8 MB, free: 13.49 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002087/0.2752, allocations: 0.9148 MB / 353.7 MB, free: 12.6 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03073/0.306, allocations: 15.33 MB / 369.1 MB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002011/0.308, allocations: 1.503 MB / 370.6 MB, free: 12.16 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001292/0.3093, allocations: 1.16 MB / 371.7 MB, free: 11.04 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.369e-05/0.3093, allocations: 38 kB / 371.8 MB, free: 11 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.09e-05/0.3094, allocations: 84.52 kB / 371.9 MB, free: 10.91 MB / 346.7 MB Notification: Performance of pre-optimization done (n=201): time 3.506e-06/0.3094, allocations: 0 / 371.9 MB, free: 10.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=201): time 0.006608/0.316, allocations: 2.752 MB / 374.6 MB, free: 8.18 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.928e-05/0.3161, allocations: 81.91 kB / 374.7 MB, free: 8.086 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03004/0.3461, allocations: 18.33 MB / 393 MB, free: 6.074 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006207/0.3467, allocations: 73.7 kB / 393.1 MB, free: 5.996 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005676/0.3524, allocations: 3.353 MB / 396.4 MB, free: 2.621 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00107/0.3535, allocations: 0.7358 MB / 397.2 MB, free: 1.879 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009657/0.3544, allocations: 477 kB / 397.6 MB, free: 1.406 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.63e-05/0.3545, allocations: 305.1 kB / 397.9 MB, free: 1.105 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007012/0.3552, allocations: 242.4 kB / 398.2 MB, free: 0.8672 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002007/0.3572, allocations: 2.423 MB / 400.6 MB, free: 13.82 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001729/0.3589, allocations: 1.244 MB / 401.8 MB, free: 12.43 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-05/0.359, allocations: 4 kB / 401.9 MB, free: 12.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=312) (initialization): time 0.005172/0.3641, allocations: 1.985 MB / 403.8 MB, free: 10.54 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.958e-05/0.3642, allocations: 15.98 kB / 403.9 MB, free: 10.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.304e-05/0.3642, allocations: 20.78 kB / 403.9 MB, free: 10.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007304/0.3649, allocations: 248.5 kB / 404.1 MB, free: 10.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002321/0.3672, allocations: 0.7115 MB / 404.8 MB, free: 9.574 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003756/0.371, allocations: 3.241 MB / 408.1 MB, free: 6.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004022/0.375, allocations: 314.7 kB / 408.4 MB, free: 5.961 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000263/0.3753, allocations: 71.98 kB / 408.4 MB, free: 5.891 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 14 (stack.cell[1,1].cell.limIntegrator.local_reset,stack.cell[1,1].limIntegrator.local_reset,stack.cell[1,2].cell.limIntegrator.local_reset,stack.cell[1,2].limIntegrator.local_reset,stack.cell[2,1].cell.limIntegrator.local_reset,stack.cell[2,1].limIntegrator.local_reset,stack.cell[2,2].cell.limIntegrator.local_reset,stack.cell[2,2].limIntegrator.local_reset,stack.cell[3,1].cell.limIntegrator.local_reset,stack.cell[3,1].limIntegrator.local_reset,stack.cell[3,2].cell.limIntegrator.local_reset,stack.cell[3,2].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 (272): * Single equations (assignments): 271 * 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 {(3,38)} Notification: Performance of prepare postOptimizeDAE: time 0.004771/0.38, allocations: 298.5 kB / 408.7 MB, free: 5.613 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002693/0.3827, allocations: 0.8856 MB / 409.6 MB, free: 4.727 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004486/0.3872, allocations: 1.385 MB / 411 MB, free: 3.332 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.584e-05/0.3872, allocations: 16 kB / 411 MB, free: 3.316 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.3872, allocations: 0 / 411 MB, free: 3.316 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.505e-05/0.3873, allocations: 11.97 kB / 411 MB, free: 3.305 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1578/0.545, allocations: 6.541 MB / 417.6 MB, free: 100.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/0.545, allocations: 3.25 kB / 417.6 MB, free: 100.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001496/0.5465, allocations: 0.5542 MB / 418.1 MB, free: 100.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003833/0.5504, allocations: 1.912 MB / 420 MB, free: 100.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004587/0.5508, allocations: 181.3 kB / 420.2 MB, free: 100.5 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001225/0.5509, allocations: 65.84 kB / 420.3 MB, free: 100.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002079/0.553, allocations: 2.746 MB / 423 MB, free: 99.22 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.553, allocations: 2.578 kB / 423 MB, free: 99.22 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003979/0.557, allocations: 2.469 MB / 425.5 MB, free: 98.89 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001053/0.5581, allocations: 83.77 kB / 425.6 MB, free: 98.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001416/0.5595, allocations: 228 kB / 425.8 MB, free: 98.89 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003357/0.5598, allocations: 220.9 kB / 426 MB, free: 98.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000104/0.5599, allocations: 43.44 kB / 426.1 MB, free: 98.89 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.01013/0.57, allocations: 9.819 MB / 435.9 MB, free: 97.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.57, allocations: 0 / 435.9 MB, free: 97.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002507/0.5726, allocations: 1.882 MB / 437.8 MB, free: 97.8 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 25 (stack.cell[1,1].cell.limIntegrator.y,stack.cell[1,1].cell.capacitor[1].v,stack.cell[1,1].cell.capacitor[2].v,stack.cell[1,1].limIntegrator.y,stack.cell[1,2].cell.limIntegrator.y,stack.cell[1,2].cell.capacitor[1].v,stack.cell[1,2].cell.capacitor[2].v,stack.cell[1,2].limIntegrator.y,stack.cell[2,1].cell.limIntegrator.y,stack.cell[2,1].cell.capacitor[1].v,stack.cell[2,1].cell.capacitor[2].v,stack.cell[2,1].limIntegrator.y,stack.cell[2,2].cell.limIntegrator.y,stack.cell[2,2].cell.capacitor[1].v,stack.cell[2,2].cell.capacitor[2].v,stack.cell[2,2].limIntegrator.y,stack.cell[3,1].cell.limIntegrator.y,stack.cell[3,1].cell.capacitor[1].v,stack.cell[3,1].cell.capacitor[2].v,stack.cell[3,1].limIntegrator.y,stack.cell[3,2].cell.limIntegrator.y,stack.cell[3,2].cell.capacitor[1].v,stack.cell[3,2].cell.capacitor[2].v,stack.cell[3,2].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 (171): * Single equations (assignments): 170 * 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 {(3,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001381/0.5739, allocations: 0.7285 MB / 438.5 MB, free: 97.64 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001667/0.5756, allocations: 1.48 MB / 440 MB, free: 97.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001169/0.5757, allocations: 197.8 kB / 440.2 MB, free: 97.38 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008299/0.5766, allocations: 0.8947 MB / 441.1 MB, free: 97.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004112/0.5807, allocations: 2.906 MB / 444 MB, free: 96.87 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04972/0.6304, allocations: 29.1 MB / 473.1 MB, free: 71.22 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002941/0.6333, allocations: 3.583 MB / 476.7 MB, free: 67.61 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.003726/0.6371, allocations: 1.601 MB / 478.3 MB, free: 66 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00311/0.6402, allocations: 2.131 MB / 480.4 MB, free: 63.86 MB / 378.7 MB Notification: Performance of SimCode: time 1.573e-06/0.6402, allocations: 0 / 480.4 MB, free: 63.86 MB / 378.7 MB Notification: Performance of Templates: time 0.3874/1.028, allocations: 150.4 MB / 0.616 GB, free: 92.67 MB / 410.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_StackRC/CCCV_StackRC.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: 5.751675338484347]