Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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_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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001594/0.001594, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002188/0.002187, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.498/1.498, allocations: 227.4 MB / 246.8 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001911/0.001911, allocations: 62.02 kB / 307 MB, free: 0.5586 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.118, allocations: 50.55 MB / 357.5 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01256/0.1306, allocations: 10.09 MB / 367.6 MB, free: 3.863 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006217/0.1369, allocations: 3.633 MB / 371.3 MB, free: 224 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007994/0.1377, allocations: 27.88 kB / 371.3 MB, free: 196 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.179/0.3168, allocations: 1.16 MB / 372.4 MB, free: 13.12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001503/0.3183, allocations: 0.6853 MB / 373.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009879/0.3193, allocations: 483.9 kB / 373.6 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007695/0.327, allocations: 7.305 MB / 380.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005388/0.3325, allocations: 4.482 MB / 385.4 MB, free: 9.516 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004858/0.3374, allocations: 2.846 MB / 388.2 MB, free: 8.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005517/0.3429, allocations: 2.933 MB / 391.2 MB, free: 6.887 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001953/0.3449, allocations: 0.679 MB / 391.8 MB, free: 6.887 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002223/0.3471, allocations: 0.72 MB / 392.6 MB, free: 6.879 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003132/0.3503, allocations: 5.82 MB / 398.4 MB, free: 1.883 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01115/0.3614, allocations: 7.191 MB / 405.6 MB, free: 10.66 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0284/0.3899, allocations: 24.69 MB / 430.3 MB, free: 2.332 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.207e-06/0.39, allocations: 4 kB / 430.3 MB, free: 2.328 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.39, allocations: 0 / 430.3 MB, free: 2.328 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0008126/0.3908, allocations: 0 / 430.3 MB, free: 2.328 MB / 334.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.04802/0.4388, allocations: 18.69 MB / 449 MB, free: 15.5 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.4389, allocations: 8.031 kB / 449 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005215/0.4441, allocations: 1.559 MB / 450.5 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04256/0.4867, allocations: 17.68 MB / 468.2 MB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001759/0.4885, allocations: 0.7495 MB / 469 MB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001232/0.4897, allocations: 324 kB / 469.3 MB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01357/0.5033, allocations: 6.489 MB / 475.8 MB, free: 4.715 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.554e-05/0.5034, allocations: 5.344 kB / 475.8 MB, free: 4.711 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004769/0.5039, allocations: 144 kB / 475.9 MB, free: 4.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.719e-05/0.504, allocations: 80 kB / 476 MB, free: 4.492 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01062/0.5146, allocations: 5.123 MB / 481.1 MB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07168/0.5863, allocations: 33.58 MB / 0.5026 GB, free: 13.55 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008622/0.595, allocations: 4.308 MB / 0.5068 GB, free: 9.312 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004746/0.5998, allocations: 2.564 MB / 0.5093 GB, free: 6.75 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001167/0.5999, allocations: 23.34 kB / 0.5094 GB, free: 6.73 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.574e-05/0.6, allocations: 67.86 kB / 0.5094 GB, free: 6.652 MB / 430.1 MB Notification: Performance of pre-optimization done (n=156): time 4.118e-06/0.6, allocations: 0 / 0.5094 GB, free: 6.652 MB / 430.1 MB Notification: Performance of matching and sorting (n=156): time 0.0188/0.6188, allocations: 7.522 MB / 0.5168 GB, free: 15.09 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005608/0.6194, allocations: 0.9863 MB / 0.5177 GB, free: 13.87 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3985/1.018, allocations: 35.87 MB / 0.5528 GB, free: 113.2 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005521/1.018, allocations: 63.8 kB / 0.5528 GB, free: 113.1 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01089/1.029, allocations: 7.494 MB / 0.5601 GB, free: 107.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008046/1.03, allocations: 0.5524 MB / 0.5607 GB, free: 107.7 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007529/1.031, allocations: 424.2 kB / 0.5611 GB, free: 107.5 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.971e-05/1.031, allocations: 304.8 kB / 0.5614 GB, free: 107.2 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002974/1.034, allocations: 1.962 MB / 0.5633 GB, free: 106.8 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003414/1.037, allocations: 2.855 MB / 0.5661 GB, free: 105.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005389/1.043, allocations: 4.196 MB / 0.5702 GB, free: 103.2 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.377e-06/1.043, allocations: 3.875 kB / 0.5702 GB, free: 103.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01299/1.056, allocations: 6.023 MB / 0.5761 GB, free: 100.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.344e-05/1.056, allocations: 16.84 kB / 0.5761 GB, free: 100.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.437e-05/1.056, allocations: 15.72 kB / 0.5761 GB, free: 100.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009445/1.057, allocations: 372.6 kB / 0.5765 GB, free: 100.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002068/1.059, allocations: 0.6932 MB / 0.5771 GB, free: 100 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004346/1.063, allocations: 4.607 MB / 0.5816 GB, free: 95.28 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007292/1.071, allocations: 0.6568 MB / 0.5823 GB, free: 94.62 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002598/1.071, allocations: 76 kB / 0.5823 GB, free: 94.55 MB / 446.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.01051/1.081, allocations: 8.146 MB / 0.5903 GB, free: 86.39 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006113/1.088, allocations: 1.402 MB / 0.5917 GB, free: 84.97 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01261/1.1, allocations: 6.027 MB / 0.5976 GB, free: 78.92 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.325e-05/1.1, allocations: 16 kB / 0.5976 GB, free: 78.91 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/1.1, allocations: 0 / 0.5976 GB, free: 78.91 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.276e-05/1.1, allocations: 11.8 kB / 0.5976 GB, free: 78.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04811/1.148, allocations: 18.57 MB / 0.6157 GB, free: 60.28 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.228e-05/1.149, allocations: 0 / 0.6157 GB, free: 60.28 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001844/1.15, allocations: 0.5694 MB / 0.6163 GB, free: 59.71 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008071/1.151, allocations: 288.7 kB / 0.6165 GB, free: 59.43 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001966/1.151, allocations: 43.98 kB / 0.6166 GB, free: 59.38 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004051/1.155, allocations: 4.03 MB / 0.6205 GB, free: 55.23 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/1.155, allocations: 8 kB / 0.6205 GB, free: 55.22 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0158/1.171, allocations: 7.614 MB / 0.628 GB, free: 47.56 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01292/1.184, allocations: 4.19 MB / 0.6321 GB, free: 43.34 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006927/1.191, allocations: 47.98 kB / 0.6321 GB, free: 43.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009454/1.201, allocations: 0.659 MB / 0.6327 GB, free: 42.63 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00119/1.202, allocations: 404.7 kB / 0.6331 GB, free: 42.23 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003838/1.202, allocations: 44 kB / 0.6332 GB, free: 42.19 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.06085/1.263, allocations: 25.67 MB / 0.6582 GB, free: 16.59 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.91e-07/1.263, allocations: 3.5 kB / 0.6582 GB, free: 16.59 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01174/1.275, allocations: 1.833 MB / 0.66 GB, free: 14.75 MB / 446.1 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 (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.001803/1.277, allocations: 428 kB / 0.6604 GB, free: 14.48 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01104/1.288, allocations: 6.962 MB / 0.6672 GB, free: 7.527 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.077e-05/1.288, allocations: 9.531 kB / 0.6673 GB, free: 7.52 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00362/1.292, allocations: 2.258 MB / 0.6695 GB, free: 5.246 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02458/1.316, allocations: 2.109 MB / 0.6715 GB, free: 3.16 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08361/1.4, allocations: 37.71 MB / 0.7083 GB, free: 13.42 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02591/1.426, allocations: 10.2 MB / 0.7183 GB, free: 3.188 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.2234/1.649, allocations: 7.685 MB / 0.7258 GB, free: 149.3 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007959/1.657, allocations: 0.6656 MB / 0.7265 GB, free: 149.3 MB / 494.1 MB Notification: Performance of SimCode: time 2.154e-06/1.657, allocations: 0.9688 kB / 0.7265 GB, free: 149.3 MB / 494.1 MB Notification: Performance of Templates: time 0.3664/2.024, allocations: 157 MB / 0.8798 GB, free: 25.2 MB / 494.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.makefile (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches