Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "[:1:22-1:33:writable] Warning: Modelica only supports 32-bit signed integers! Transforming: 13743895347 into a real Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0002218/0.0002218, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0001848/0.0001848, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.09018/0.09018, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: simulate(Modelica.Electrical.Batteries.Examples.CCCV_Stack,startTime=0,stopTime=1200,tolerance=1e-06,numberOfIntervals=12000,outputFormat="mat",variableFilter="time|energy.y|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",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack",simflags="-abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS") simulate(Modelica.Electrical.Batteries.Examples.CCCV_Stack,startTime=0,stopTime=1200,tolerance=1e-06,numberOfIntervals=12000,outputFormat="mat",variableFilter="time|energy.y|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",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack",simflags="-abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS") [Timeout 900] "Notification: Performance of FrontEnd - loaded program: time 9.12e-07/9.12e-07, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - Absyn->SCode: time 1.71e-05/1.801e-05, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01095/0.01096, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instExpressions: time 0.005092/0.01606, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.updateImplicitVariability: time 0.0004014/0.01646, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeComponents: time 0.002355/0.01881, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeBindings: time 0.001163/0.01998, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeClassSections: time 0.0007896/0.02076, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.flatten: time 0.005442/0.02621, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.resolveConnections: time 0.003125/0.02933, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFEvalConstants.evaluate: time 0.005179/0.03451, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFSimplifyModel.simplify: time 0.002929/0.03744, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFPackage.collectConstants: time 0.0006043/0.03804, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.collectFunctions: time 0.0006912/0.03873, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFScalarize.scalarize: time 0.00419/0.04292, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFVerifyModel.verify: time 0.005003/0.04793, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFConvertDAE.convert: time 0.01483/0.06276, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - DAE generated: time 0.001814/0.06457, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd: time 1.794e-06/0.06457, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Transformations before backend: time 6.574e-05/0.06464, allocations: 0 / 0, free: 0 / 0 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.02359/0.08823, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare preOptimizeDAE: time 0.0007876/0.08902, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002331/0.09135, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evaluateParameters (simulation): time 0.01271/0.1041, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000418/0.1045, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007024/0.1052, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt clockPartitioning (simulation): time 0.005579/0.1108, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt findStateOrder (simulation): time 8.232e-05/0.1108, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004478/0.1113, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.315e-05/0.1114, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001687/0.1131, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02457/0.1376, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt comSubExp (simulation): time 0.001681/0.1393, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt resolveLoops (simulation): time 0.0009609/0.1403, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evalFunc (simulation): time 6.019e-05/0.1403, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.671e-05/0.1404, allocations: 0 / 0, free: 0 / 0 Notification: Performance of pre-optimization done (n=126): time 1.008e-05/0.1404, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=126): time 0.004373/0.1448, allocations: 0 / 0, free: 0 / 0 Notification: Performance of inlineWhenForInitialization (initialization): time 7.885e-05/0.1448, allocations: 0 / 0, free: 0 / 0 Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02626/0.1711, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectPreVariables (initialization): time 0.0005462/0.1716, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialEqns (initialization): time 0.002274/0.1739, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialBindings (initialization): time 0.0003964/0.1743, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006402/0.175, allocations: 0 / 0, free: 0 / 0 Notification: Performance of setup shared object (initialization): time 1.896e-05/0.175, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004276/0.1754, allocations: 0 / 0, free: 0 / 0 Notification: Performance of partitionIndependentBlocks (initialization): time 0.000769/0.1762, allocations: 0 / 0, free: 0 / 0 Notification: Performance of analyzeInitialSystem (initialization): time 0.001043/0.1772, allocations: 0 / 0, free: 0 / 0 Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-05/0.1772, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=212) (initialization): time 0.002839/0.1801, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare postOptimizeDAE: time 3.855e-05/0.1801, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.339e-05/0.1801, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (initialization): time 0.0005533/0.1807, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001239/0.1819, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002583/0.1845, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002219/0.1867, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001773/0.1869, allocations: 0 / 0, free: 0 / 0 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.00201/0.1889, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001264/0.1902, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003471/0.1937, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.3e-05/0.1937, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.1937, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.216e-05/0.1937, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01287/0.2065, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.548e-06/0.2066, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009697/0.2075, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (simulation): time 0.000413/0.2079, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001516/0.2081, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002262/0.2104, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.2104, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002898/0.2133, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeConstants (simulation): time 0.004295/0.2176, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00345/0.221, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002079/0.2231, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006398/0.2237, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001545/0.2239, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sorting global known variables: time 0.01462/0.2385, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sort global known variables: time 0.0007459/0.2392, allocations: 0 / 0, free: 0 / 0 Notification: Performance of remove unused functions: time 0.004476/0.2437, allocations: 0 / 0, free: 0 / 0 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.00213/0.2458, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created initialization part: time 0.001719/0.2476, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created event and clocks part: time 0.0002153/0.2478, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created simulation system equations: time 0.0008968/0.2487, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007192/0.2559, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03454/0.2904, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005911/0.2963, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: alias equations: time 0.003834/0.3002, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006624/0.3068, allocations: 0 / 0, free: 0 / 0 Notification: Performance of SimCode: time 0.0002613/0.307, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Templates: time 0.03267/0.3397, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 899] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Stack/CCCV_Stack.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable stack.cell[1, 1].cell.limIntegrator.y in file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat. Warning: Get data of variable stack.cell[1, 1].cell.limIntegrator.y from file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat failed! Error: Could not read variable stack.cell[1, 1].limIntegrator.y in file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat. Warning: Get data of variable stack.cell[1, 1].limIntegrator.y from file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat failed! Error: Could not read variable stack.cell[1, 2].cell.limIntegrator.y in file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat. Warning: Get data of variable stack.cell[1, 2].cell.limIntegrator.y from file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat failed! Error: Could not read variable stack.cell[1, 2].limIntegrator.y in file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat. Warning: Get data of variable stack.cell[1, 2].limIntegrator.y from file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat failed! Error: Could not read variable stack.cell[2, 1].cell.limIntegrator.y in file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat. Warning: Get data of variable stack.cell[2, 1].cell.limIntegrator.y from file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat failed! Error: Could not read variable stack.cell[2, 1].limIntegrator.y in file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat. Warning: Get data of variable stack.cell[2, 1].limIntegrator.y from file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat failed! Error: Could not read variable stack.cell[2, 2].cell.limIntegrator.y in file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat. Warning: Get data of variable stack.cell[2, 2].cell.limIntegrator.y from file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat failed! Error: Could not read variable stack.cell[2, 2].limIntegrator.y in file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat. Warning: Get data of variable stack.cell[2, 2].limIntegrator.y from file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat failed! Error: Could not read variable stack.cell[3, 1].cell.limIntegrator.y in file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat. Warning: Get data of variable stack.cell[3, 1].cell.limIntegrator.y from file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat failed! Error: Could not read variable stack.cell[3, 1].limIntegrator.y in file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat. Warning: Get data of variable stack.cell[3, 1].limIntegrator.y from file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat failed! Error: Could not read variable stack.cell[3, 2].cell.limIntegrator.y in file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat. Warning: Get data of variable stack.cell[3, 2].cell.limIntegrator.y from file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat failed! Error: Could not read variable stack.cell[3, 2].limIntegrator.y in file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat. Warning: Get data of variable stack.cell[3, 2].limIntegrator.y from file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 1.4320402080193162]