Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.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.0007948/0.0007948, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001105/0.0019, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0006857/0.0006857, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008889/0.001575, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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 1.012/1.012, allocations: 177.2 MB / 189.8 MB, free: 5.258 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09538/1.107, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.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_Stack,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|energy.y|stack.cell.[0-9,]+..cell.limIntegrator.y|stack.cell.[0-9,]+..limIntegrator.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Stack,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|energy.y|stack.cell.[0-9,]+..cell.limIntegrator.y|stack.cell.[0-9,]+..limIntegrator.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 244.7 MB, free: 14.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.154e-05/2.302e-05, allocations: 2.312 kB / 244.7 MB, free: 14.25 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01909/0.01911, allocations: 9.631 MB / 254.3 MB, free: 4.562 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.008706/0.02782, allocations: 3.64 MB / 258 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001383/0.0292, allocations: 35.81 kB / 258 MB, free: 0.875 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003481/0.03268, allocations: 1.182 MB / 259.2 MB, free: 15.69 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002144/0.03482, allocations: 0.7147 MB / 259.9 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00133/0.03615, allocations: 495.1 kB / 260.4 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006249/0.0424, allocations: 7.199 MB / 267.6 MB, free: 7.27 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002454/0.04486, allocations: 2.198 MB / 269.8 MB, free: 4.965 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1296/0.1745, allocations: 4.983 MB / 274.8 MB, free: 8.523 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005021/0.1795, allocations: 2.952 MB / 277.7 MB, free: 8.523 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002826/0.1824, allocations: 0.6646 MB / 278.4 MB, free: 8.523 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003784/0.1861, allocations: 0.7052 MB / 279.1 MB, free: 8.523 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006041/0.1922, allocations: 5.502 MB / 284.6 MB, free: 8.496 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01138/0.2036, allocations: 3.011 MB / 287.6 MB, free: 8.047 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01434/0.2179, allocations: 13.82 MB / 301.4 MB, free: 1.41 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.963e-05/0.2179, allocations: 0 / 301.4 MB, free: 1.41 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2179, allocations: 0 / 301.4 MB, free: 1.41 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0006359/0.2186, allocations: 0 / 301.4 MB, free: 1.41 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: 837 * Number of variables: 837 Notification: Performance of Generate backend data structure: time 0.03373/0.2523, allocations: 17.5 MB / 318.9 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.691e-05/0.2523, allocations: 8.031 kB / 318.9 MB, free: 0.7148 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003533/0.2559, allocations: 1.121 MB / 320 MB, free: 15.59 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01507/0.2709, allocations: 7.063 MB / 327.1 MB, free: 8.918 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003797/0.2713, allocations: 349.9 kB / 327.4 MB, free: 8.562 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006192/0.2719, allocations: 351.9 kB / 327.8 MB, free: 8.223 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005052/0.277, allocations: 4.509 MB / 332.3 MB, free: 3.27 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.325e-05/0.277, allocations: 11.66 kB / 332.3 MB, free: 3.262 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002482/0.2773, allocations: 144 kB / 332.4 MB, free: 3.121 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.248e-05/0.2773, allocations: 80 kB / 332.5 MB, free: 3.043 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001427/0.2788, allocations: 0.7381 MB / 333.3 MB, free: 2.32 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02892/0.3077, allocations: 14.67 MB / 347.9 MB, free: 3.871 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00143/0.3091, allocations: 1.009 MB / 348.9 MB, free: 2.879 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000711/0.3098, allocations: 0.5627 MB / 349.5 MB, free: 2.34 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.879e-05/0.3099, allocations: 21 kB / 349.5 MB, free: 2.316 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.585e-05/0.3099, allocations: 66.59 kB / 349.6 MB, free: 2.246 MB / 314.7 MB Notification: Performance of pre-optimization done (n=126): time 3.667e-06/0.31, allocations: 0 / 349.6 MB, free: 2.246 MB / 314.7 MB Notification: Performance of matching and sorting (n=126): time 0.006686/0.3166, allocations: 1.843 MB / 351.4 MB, free: 428 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.258e-05/0.3167, allocations: 76.25 kB / 351.5 MB, free: 340 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03594/0.3526, allocations: 17.7 MB / 369.2 MB, free: 15.13 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004496/0.3531, allocations: 57.7 kB / 369.3 MB, free: 15.07 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004933/0.358, allocations: 3.054 MB / 372.3 MB, free: 12 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006555/0.3587, allocations: 467.2 kB / 372.8 MB, free: 11.54 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005694/0.3592, allocations: 327.2 kB / 373.1 MB, free: 11.22 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.76e-05/0.3593, allocations: 305.1 kB / 373.4 MB, free: 10.92 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004373/0.3597, allocations: 167.9 kB / 373.5 MB, free: 10.75 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001233/0.361, allocations: 1.838 MB / 375.4 MB, free: 8.402 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001274/0.3623, allocations: 0.998 MB / 376.4 MB, free: 7.262 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.245e-05/0.3623, allocations: 8 kB / 376.4 MB, free: 7.254 MB / 346.7 MB Notification: Performance of matching and sorting (n=212) (initialization): time 0.005295/0.3676, allocations: 1.595 MB / 378 MB, free: 5.746 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.927e-05/0.3676, allocations: 12 kB / 378 MB, free: 5.734 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.871e-05/0.3676, allocations: 12 kB / 378 MB, free: 5.723 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005852/0.3682, allocations: 187.9 kB / 378.2 MB, free: 5.539 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001204/0.3694, allocations: 394.8 kB / 378.6 MB, free: 5.176 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002766/0.3722, allocations: 2.55 MB / 381.1 MB, free: 2.562 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004955/0.3771, allocations: 242.7 kB / 381.4 MB, free: 2.324 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001484/0.3773, allocations: 55.09 kB / 381.4 MB, free: 2.273 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 (186): * Single equations (assignments): 185 * 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,24)} Notification: Performance of prepare postOptimizeDAE: time 0.004111/0.3814, allocations: 262 kB / 381.7 MB, free: 2.027 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002681/0.3841, allocations: 0.7451 MB / 382.4 MB, free: 1.281 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004728/0.3888, allocations: 1.824 MB / 384.2 MB, free: 15.45 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.028e-05/0.3888, allocations: 15.47 kB / 384.3 MB, free: 15.44 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.154e-06/0.3888, allocations: 3.938 kB / 384.3 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.136e-05/0.3888, allocations: 7.969 kB / 384.3 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01469/0.4035, allocations: 6.76 MB / 391 MB, free: 8.645 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.151e-06/0.4035, allocations: 4 kB / 391 MB, free: 8.641 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009329/0.4044, allocations: 261.8 kB / 391.3 MB, free: 8.395 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004729/0.4092, allocations: 2.361 MB / 393.7 MB, free: 6.023 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004558/0.4096, allocations: 132.8 kB / 393.8 MB, free: 5.891 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001035/0.4097, allocations: 35.98 kB / 393.8 MB, free: 5.855 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002101/0.4118, allocations: 2.216 MB / 396 MB, free: 3.566 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.4118, allocations: 0 / 396 MB, free: 3.566 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004149/0.416, allocations: 1.75 MB / 397.8 MB, free: 1.805 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003069/0.419, allocations: 43.98 kB / 397.8 MB, free: 1.762 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00332/0.4224, allocations: 167.9 kB / 398 MB, free: 1.598 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004051/0.4228, allocations: 179.7 kB / 398.2 MB, free: 1.426 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.081e-05/0.4229, allocations: 24 kB / 398.2 MB, free: 1.402 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.02182/0.4447, allocations: 9.775 MB / 408 MB, free: 7.691 MB / 378.7 MB Notification: Performance of sort global known variables: time 2e-07/0.4447, allocations: 0 / 408 MB, free: 7.691 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.01077/0.4555, allocations: 1.853 MB / 409.8 MB, free: 5.836 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 13 (stack.cell[1,1].cell.limIntegrator.y,stack.cell[1,1].limIntegrator.y,stack.cell[1,2].cell.limIntegrator.y,stack.cell[1,2].limIntegrator.y,stack.cell[2,1].cell.limIntegrator.y,stack.cell[2,1].limIntegrator.y,stack.cell[2,2].cell.limIntegrator.y,stack.cell[2,2].limIntegrator.y,stack.cell[3,1].cell.limIntegrator.y,stack.cell[3,1].limIntegrator.y,stack.cell[3,2].cell.limIntegrator.y,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 (106): * Single equations (assignments): 105 * 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,18)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001672/0.4571, allocations: 0.5279 MB / 410.3 MB, free: 5.574 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002035/0.4592, allocations: 1.064 MB / 411.4 MB, free: 4.527 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0003012/0.4595, allocations: 175 kB / 411.6 MB, free: 4.359 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001089/0.4606, allocations: 0.683 MB / 412.3 MB, free: 3.664 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1393/0.5998, allocations: 12.44 MB / 424.7 MB, free: 101.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06015/0.66, allocations: 26.58 MB / 451.3 MB, free: 92.39 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008024/0.668, allocations: 3.264 MB / 454.6 MB, free: 90.11 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.006547/0.6746, allocations: 1.387 MB / 455.9 MB, free: 89.14 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009284/0.6838, allocations: 1.78 MB / 457.7 MB, free: 87.49 MB / 378.7 MB Notification: Performance of SimCode: time 2.214e-06/0.6838, allocations: 0.5469 kB / 457.7 MB, free: 87.49 MB / 378.7 MB Notification: Performance of Templates: time 0.4295/1.113, allocations: 173.2 MB / 0.6161 GB, free: 70.39 MB / 394.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Stack/CCCV_Stack.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.988264330662787]