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.0007856/0.0007856, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001276/0.002062, allocations: 449.7 kB / 10.37 MB, free: 328 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.0007855/0.0007855, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001098/0.001883, allocations: 455.6 kB / 11.71 MB, free: 2.461 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.001/1.001, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1106/1.112, allocations: 53.65 MB / 243.3 MB, free: 15.58 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.443e-06/1.443e-06, allocations: 0 / 244.5 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.931e-05/2.075e-05, allocations: 8.922 kB / 244.5 MB, free: 14.33 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.008743/0.008764, allocations: 9.615 MB / 254.1 MB, free: 4.664 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004444/0.01321, allocations: 3.644 MB / 257.8 MB, free: 1.008 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005404/0.01375, allocations: 35.75 kB / 257.8 MB, free: 0.9727 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001727/0.01547, allocations: 1.186 MB / 259 MB, free: 15.78 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009087/0.01638, allocations: 0.7148 MB / 259.7 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007051/0.01709, allocations: 483.2 kB / 260.2 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00471/0.0218, allocations: 7.192 MB / 267.4 MB, free: 7.379 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002449/0.02425, allocations: 2.201 MB / 269.6 MB, free: 5.07 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.129/0.1533, allocations: 4.987 MB / 274.6 MB, free: 8.375 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005909/0.1592, allocations: 2.95 MB / 277.5 MB, free: 8.375 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003453/0.1626, allocations: 0.6649 MB / 278.2 MB, free: 8.375 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0032/0.1658, allocations: 0.7037 MB / 278.9 MB, free: 8.375 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005851/0.1717, allocations: 5.497 MB / 284.4 MB, free: 8.348 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01001/0.1817, allocations: 3.011 MB / 287.4 MB, free: 7.902 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01114/0.1928, allocations: 13.81 MB / 301.2 MB, free: 1.434 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.246e-05/0.1929, allocations: 2.406 kB / 301.2 MB, free: 1.434 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1929, allocations: 0 / 301.2 MB, free: 1.434 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.000565/0.1934, allocations: 0 / 301.2 MB, free: 1.434 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.03088/0.2243, allocations: 17.5 MB / 318.7 MB, free: 0.7656 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.479e-05/0.2243, allocations: 8.875 kB / 318.7 MB, free: 0.7578 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002968/0.2273, allocations: 1.121 MB / 319.8 MB, free: 15.63 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01795/0.2453, allocations: 7.064 MB / 326.9 MB, free: 8.973 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003182/0.2456, allocations: 353.9 kB / 327.2 MB, free: 8.613 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004937/0.2461, allocations: 344 kB / 327.6 MB, free: 8.277 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004469/0.2505, allocations: 4.517 MB / 332.1 MB, free: 3.316 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.876e-05/0.2506, allocations: 3.188 kB / 332.1 MB, free: 3.316 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002431/0.2508, allocations: 144 kB / 332.2 MB, free: 3.176 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-05/0.2509, allocations: 80 kB / 332.3 MB, free: 3.098 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00141/0.2523, allocations: 0.7431 MB / 333.1 MB, free: 2.371 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02771/0.28, allocations: 14.67 MB / 347.7 MB, free: 3.918 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001368/0.2814, allocations: 1.015 MB / 348.7 MB, free: 2.922 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007296/0.2821, allocations: 0.5571 MB / 349.3 MB, free: 2.391 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.86e-05/0.2822, allocations: 21 kB / 349.3 MB, free: 2.367 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.153e-05/0.2822, allocations: 63.56 kB / 349.4 MB, free: 2.297 MB / 314.7 MB Notification: Performance of pre-optimization done (n=126): time 5.019e-06/0.2822, allocations: 0 / 349.4 MB, free: 2.297 MB / 314.7 MB Notification: Performance of matching and sorting (n=126): time 0.006672/0.2889, allocations: 1.848 MB / 351.2 MB, free: 476 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.245e-05/0.2889, allocations: 80.2 kB / 351.3 MB, free: 384 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03852/0.3275, allocations: 17.69 MB / 369 MB, free: 15.17 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004942/0.328, allocations: 57.7 kB / 369.1 MB, free: 15.11 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005749/0.3337, allocations: 3.058 MB / 372.1 MB, free: 12.04 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006316/0.3343, allocations: 468 kB / 372.6 MB, free: 11.57 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000658/0.335, allocations: 323.2 kB / 372.9 MB, free: 11.25 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.477e-05/0.3351, allocations: 301.1 kB / 373.2 MB, free: 10.96 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004978/0.3356, allocations: 163.9 kB / 373.3 MB, free: 10.8 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001335/0.3369, allocations: 1.847 MB / 375.2 MB, free: 8.438 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00128/0.3382, allocations: 0.9512 MB / 376.1 MB, free: 7.352 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.164e-05/0.3382, allocations: 4 kB / 376.1 MB, free: 7.348 MB / 346.7 MB Notification: Performance of matching and sorting (n=212) (initialization): time 0.006635/0.3448, allocations: 1.592 MB / 377.7 MB, free: 5.84 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.968e-05/0.3449, allocations: 12 kB / 377.7 MB, free: 5.828 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.222e-05/0.3449, allocations: 12 kB / 377.8 MB, free: 5.816 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006278/0.3455, allocations: 190.7 kB / 377.9 MB, free: 5.633 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001217/0.3467, allocations: 402.3 kB / 378.3 MB, free: 5.262 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002892/0.3496, allocations: 2.536 MB / 380.9 MB, free: 2.656 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01108/0.3607, allocations: 238.7 kB / 381.1 MB, free: 2.422 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000162/0.3609, allocations: 52 kB / 381.2 MB, free: 2.371 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.01679/0.3777, allocations: 273.1 kB / 381.4 MB, free: 2.121 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.009489/0.3872, allocations: 0.7491 MB / 382.2 MB, free: 1.371 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01783/0.405, allocations: 1.812 MB / 384 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.244e-05/0.405, allocations: 12 kB / 384 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.405, allocations: 3.562 kB / 384 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.091e-05/0.405, allocations: 11.97 kB / 384 MB, free: 15.53 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02642/0.4314, allocations: 6.76 MB / 390.8 MB, free: 8.746 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.4314, allocations: 0 / 390.8 MB, free: 8.746 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006813/0.4321, allocations: 261.8 kB / 391 MB, free: 8.5 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004557/0.4367, allocations: 2.361 MB / 393.4 MB, free: 6.129 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003362/0.437, allocations: 132.8 kB / 393.5 MB, free: 5.996 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.376e-05/0.4371, allocations: 31.98 kB / 393.5 MB, free: 5.965 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001718/0.4388, allocations: 2.232 MB / 395.8 MB, free: 3.668 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.4388, allocations: 0 / 395.8 MB, free: 3.668 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003446/0.4422, allocations: 1.749 MB / 397.5 MB, free: 1.906 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001109/0.4434, allocations: 39.98 kB / 397.6 MB, free: 1.867 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00128/0.4446, allocations: 159.9 kB / 397.7 MB, free: 1.711 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003315/0.445, allocations: 180.6 kB / 397.9 MB, free: 1.535 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.763e-05/0.445, allocations: 28 kB / 397.9 MB, free: 1.508 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.01249/0.4575, allocations: 9.775 MB / 407.7 MB, free: 7.797 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4575, allocations: 4 kB / 407.7 MB, free: 7.793 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.006298/0.4638, allocations: 1.849 MB / 409.6 MB, free: 5.941 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.001354/0.4652, allocations: 0.5472 MB / 410.1 MB, free: 5.676 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002081/0.4673, allocations: 1.031 MB / 411.1 MB, free: 4.684 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002037/0.4675, allocations: 177.6 kB / 411.3 MB, free: 4.512 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008538/0.4683, allocations: 0.6161 MB / 411.9 MB, free: 3.895 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01182/0.4801, allocations: 2.256 MB / 414.2 MB, free: 1.652 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2607/0.7408, allocations: 26.57 MB / 440.7 MB, free: 101.5 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005591/0.7464, allocations: 3.265 MB / 444 MB, free: 101 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.004846/0.7512, allocations: 1.379 MB / 445.4 MB, free: 100.6 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005971/0.7572, allocations: 1.784 MB / 447.2 MB, free: 98.98 MB / 378.8 MB Notification: Performance of SimCode: time 2.234e-06/0.7572, allocations: 2.078 kB / 447.2 MB, free: 98.98 MB / 378.8 MB Notification: Performance of Templates: time 0.3215/1.079, allocations: 172.6 MB / 0.6053 GB, free: 81.02 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.904291532933712]