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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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: translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Stack,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,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") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Stack,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001455/0.001454, allocations: 111.5 kB / 17.06 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001775/0.001776, allocations: 200 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.435/1.435, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001064/0.001064, allocations: 51.91 kB / 351.3 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3294/0.3305, allocations: 49.43 MB / 400.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01123/0.3418, allocations: 10.06 MB / 410.8 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005855/0.3477, allocations: 3.466 MB / 414.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001231/0.349, allocations: 23.94 kB / 414.3 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003061/0.352, allocations: 1.183 MB / 415.4 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001676/0.3538, allocations: 0.6452 MB / 416.1 MB, free: 9.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001337/0.3552, allocations: 497 kB / 416.6 MB, free: 8.949 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008288/0.3635, allocations: 7.351 MB / 423.9 MB, free: 1.578 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005181/0.3687, allocations: 4.458 MB / 428.4 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003786/0.3725, allocations: 2.847 MB / 431.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004109/0.3767, allocations: 2.935 MB / 434.2 MB, free: 7.234 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0012/0.3779, allocations: 0.6758 MB / 434.8 MB, free: 6.559 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00142/0.3793, allocations: 0.7226 MB / 435.6 MB, free: 5.836 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003984/0.3833, allocations: 5.802 MB / 441.4 MB, free: 20 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01002/0.3933, allocations: 7.191 MB / 448.6 MB, free: 8.785 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02284/0.4162, allocations: 24.88 MB / 473.4 MB, free: 15.84 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.955e-06/0.4163, allocations: 0 / 473.4 MB, free: 15.84 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4163, allocations: 0 / 473.4 MB, free: 15.84 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0007067/0.417, allocations: 0 / 473.4 MB, free: 15.84 MB / 398.1 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.05172/0.4687, allocations: 18.65 MB / 492.1 MB, free: 13.03 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.864e-05/0.4688, allocations: 15.97 kB / 492.1 MB, free: 13.02 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006218/0.475, allocations: 1.547 MB / 493.7 MB, free: 11.45 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04192/0.517, allocations: 17.73 MB / 0.4994 GB, free: 9.625 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007253/0.5178, allocations: 336.2 kB / 0.4997 GB, free: 9.289 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001897/0.5197, allocations: 324 kB / 0.5 GB, free: 8.973 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01386/0.5336, allocations: 6.491 MB / 0.5064 GB, free: 2.258 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.63e-05/0.5337, allocations: 7.938 kB / 0.5064 GB, free: 2.25 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004718/0.5342, allocations: 144 kB / 0.5065 GB, free: 2.109 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.116e-05/0.5342, allocations: 80 kB / 0.5066 GB, free: 2.031 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009557/0.5438, allocations: 5.126 MB / 0.5116 GB, free: 12.89 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5621/1.106, allocations: 33.4 MB / 0.5442 GB, free: 105.4 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007356/1.113, allocations: 4.309 MB / 0.5484 GB, free: 104.6 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003707/1.117, allocations: 2.582 MB / 0.5509 GB, free: 104 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001136/1.117, allocations: 27.89 kB / 0.551 GB, free: 103.9 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.598e-05/1.117, allocations: 69.06 kB / 0.551 GB, free: 103.9 MB / 462.1 MB Notification: Performance of pre-optimization done (n=156): time 4.027e-06/1.117, allocations: 3.375 kB / 0.551 GB, free: 103.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=156): time 0.0168/1.134, allocations: 7.52 MB / 0.5584 GB, free: 101.2 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002102/1.134, allocations: 0.9855 MB / 0.5593 GB, free: 99.98 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.06746/1.202, allocations: 35.77 MB / 0.5943 GB, free: 68.57 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005917/1.202, allocations: 69.7 kB / 0.5943 GB, free: 68.5 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01167/1.214, allocations: 7.462 MB / 0.6016 GB, free: 61.24 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008282/1.215, allocations: 0.5453 MB / 0.6022 GB, free: 60.7 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000773/1.216, allocations: 427.2 kB / 0.6026 GB, free: 60.27 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.537e-05/1.216, allocations: 305.1 kB / 0.6029 GB, free: 59.97 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002908/1.219, allocations: 1.971 MB / 0.6048 GB, free: 58 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003199/1.222, allocations: 2.856 MB / 0.6076 GB, free: 54.83 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005666/1.228, allocations: 4.211 MB / 0.6117 GB, free: 50.42 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-05/1.228, allocations: 4.547 kB / 0.6117 GB, free: 50.41 MB / 462.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01481/1.242, allocations: 6.025 MB / 0.6176 GB, free: 44.36 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.364e-05/1.243, allocations: 12.16 kB / 0.6176 GB, free: 44.35 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.349e-05/1.243, allocations: 20 kB / 0.6176 GB, free: 44.33 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001023/1.244, allocations: 363.9 kB / 0.6179 GB, free: 43.97 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002018/1.246, allocations: 0.6977 MB / 0.6186 GB, free: 43.28 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004284/1.25, allocations: 4.61 MB / 0.6231 GB, free: 38.52 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008314/1.258, allocations: 0.6491 MB / 0.6238 GB, free: 37.87 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005722/1.259, allocations: 76 kB / 0.6238 GB, free: 37.8 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * Number of states: 0 () * Number of discrete variables: 14 (cccvCharger.CV,energy.local_reset,stack.cell[3,2].limIntegrator.local_reset,stack.cell[3,2].cell.limIntegrator.local_reset,stack.cell[3,1].limIntegrator.local_reset,stack.cell[3,1].cell.limIntegrator.local_reset,stack.cell[2,2].limIntegrator.local_reset,stack.cell[2,2].cell.limIntegrator.local_reset,stack.cell[2,1].limIntegrator.local_reset,stack.cell[2,1].cell.limIntegrator.local_reset,stack.cell[1,2].limIntegrator.local_reset,stack.cell[1,2].cell.limIntegrator.local_reset,stack.cell[1,1].limIntegrator.local_reset,stack.cell[1,1].cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (222): * Single equations (assignments): 221 * 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.01444/1.273, allocations: 8.134 MB / 0.6318 GB, free: 29.66 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007289/1.281, allocations: 1.392 MB / 0.6331 GB, free: 28.25 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01522/1.296, allocations: 6.031 MB / 0.639 GB, free: 22.2 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.364e-05/1.296, allocations: 19.94 kB / 0.6391 GB, free: 22.18 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/1.296, allocations: 0 / 0.6391 GB, free: 22.18 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.396e-05/1.296, allocations: 7.969 kB / 0.6391 GB, free: 22.17 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03893/1.335, allocations: 18.53 MB / 0.6572 GB, free: 3.602 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.586e-06/1.335, allocations: 0 / 0.6572 GB, free: 3.602 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001742/1.337, allocations: 0.5694 MB / 0.6577 GB, free: 3.031 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007637/1.337, allocations: 293.9 kB / 0.658 GB, free: 2.742 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001261/1.338, allocations: 43.98 kB / 0.658 GB, free: 2.699 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004086/1.342, allocations: 4.031 MB / 0.662 GB, free: 14.55 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/1.342, allocations: 0 / 0.662 GB, free: 14.55 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0167/1.358, allocations: 7.626 MB / 0.6694 GB, free: 6.875 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01207/1.371, allocations: 4.197 MB / 0.6735 GB, free: 2.641 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006538/1.377, allocations: 44 kB / 0.6736 GB, free: 2.598 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01026/1.387, allocations: 0.6552 MB / 0.6742 GB, free: 1.941 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001363/1.389, allocations: 436.7 kB / 0.6746 GB, free: 1.512 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002022/1.389, allocations: 43.98 kB / 0.6747 GB, free: 1.469 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.06113/1.45, allocations: 25.59 MB / 0.6996 GB, free: 7.953 MB / 0.4982 GB Notification: Performance of sort global known variables: time 5.21e-07/1.45, allocations: 0 / 0.6996 GB, free: 7.953 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.01479/1.465, allocations: 1.848 MB / 0.7014 GB, free: 6.105 MB / 0.4982 GB 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 (136): * Single equations (assignments): 135 * 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.001462/1.466, allocations: 430.3 kB / 0.7019 GB, free: 5.824 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.008466/1.475, allocations: 4.49 MB / 0.7062 GB, free: 1.328 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.191e-05/1.475, allocations: 5.219 kB / 0.7062 GB, free: 1.324 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.003975/1.479, allocations: 2.272 MB / 0.7085 GB, free: 15.04 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02015/1.499, allocations: 2.118 MB / 0.7105 GB, free: 12.95 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3405/1.84, allocations: 37.57 MB / 0.7472 GB, free: 175 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0229/1.863, allocations: 10.17 MB / 0.7572 GB, free: 172.1 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.02204/1.885, allocations: 8.145 MB / 0.7651 GB, free: 169.2 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00694/1.892, allocations: 0.6624 MB / 0.7658 GB, free: 169.2 MB / 0.5294 GB Notification: Performance of SimCode: time 1.233e-06/1.892, allocations: 0 / 0.7658 GB, free: 169.2 MB / 0.5294 GB Notification: Performance of Templates: time 0.2297/2.121, allocations: 160.4 MB / 0.9224 GB, free: 11.91 MB / 0.5294 GB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1) 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches