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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001535/0.001535, allocations: 118.6 kB / 18.5 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001878/0.001878, allocations: 218.6 kB / 21.47 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.526/1.526, allocations: 230.2 MB / 254.5 MB, free: 15.41 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Stack,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Stack",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Stack,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Stack",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001838/0.001838, allocations: 63.91 kB / 373.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1205, allocations: 53.33 MB / 426.7 MB, free: 5.004 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01281/0.1333, allocations: 10.13 MB / 436.8 MB, free: 10.82 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006376/0.1396, allocations: 3.649 MB / 440.4 MB, free: 7.164 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00105/0.1407, allocations: 27.88 kB / 440.5 MB, free: 7.137 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002786/0.1435, allocations: 1.179 MB / 441.6 MB, free: 5.953 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001608/0.1451, allocations: 0.688 MB / 442.3 MB, free: 5.262 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001111/0.1462, allocations: 482.3 kB / 442.8 MB, free: 4.793 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2725/0.4187, allocations: 7.317 MB / 450.1 MB, free: 13.39 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004583/0.4233, allocations: 3.314 MB / 453.4 MB, free: 12.84 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00508/0.4283, allocations: 2.866 MB / 456.3 MB, free: 12.42 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00604/0.4344, allocations: 2.982 MB / 459.3 MB, free: 11.16 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00264/0.437, allocations: 0.685 MB / 460 MB, free: 11.16 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003399/0.4404, allocations: 0.7289 MB / 460.7 MB, free: 11.15 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007036/0.4475, allocations: 5.831 MB / 466.5 MB, free: 9.016 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01668/0.4641, allocations: 7.19 MB / 473.7 MB, free: 3.82 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03936/0.5035, allocations: 25.01 MB / 498.7 MB, free: 3.016 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.548e-06/0.5035, allocations: 4 kB / 498.7 MB, free: 3.012 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.5035, allocations: 0 / 498.7 MB, free: 3.012 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0008642/0.5044, allocations: 0 / 498.7 MB, free: 3.012 MB / 382.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.06784/0.5722, allocations: 19.24 MB / 0.5058 GB, free: 15.65 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.233e-05/0.5723, allocations: 8.031 kB / 0.5058 GB, free: 15.64 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001942/0.5742, allocations: 0.4917 MB / 0.5063 GB, free: 15.14 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006395/0.5806, allocations: 1.635 MB / 0.5079 GB, free: 13.5 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0501/0.6307, allocations: 17.91 MB / 0.5254 GB, free: 11.95 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005633/0.6313, allocations: 340.2 kB / 0.5257 GB, free: 11.61 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001258/0.6325, allocations: 324 kB / 0.526 GB, free: 11.29 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0134/0.6459, allocations: 6.494 MB / 0.5324 GB, free: 4.594 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.261e-05/0.646, allocations: 6.25 kB / 0.5324 GB, free: 4.59 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000462/0.6465, allocations: 144 kB / 0.5325 GB, free: 4.449 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.086e-05/0.6465, allocations: 80 kB / 0.5326 GB, free: 4.371 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01047/0.657, allocations: 5.125 MB / 0.5376 GB, free: 15.26 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09736/0.7544, allocations: 33.46 MB / 0.5703 GB, free: 13.8 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01244/0.7668, allocations: 4.171 MB / 0.5744 GB, free: 9.699 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007048/0.7738, allocations: 2.48 MB / 0.5768 GB, free: 7.234 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00014/0.774, allocations: 21.3 kB / 0.5768 GB, free: 7.215 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001055/0.7741, allocations: 67.34 kB / 0.5769 GB, free: 7.145 MB / 478.1 MB Notification: Performance of pre-optimization done (n=156): time 8.376e-06/0.7741, allocations: 3.469 kB / 0.5769 GB, free: 7.145 MB / 478.1 MB Notification: Performance of matching and sorting (n=156): time 0.02418/0.7983, allocations: 7.597 MB / 0.5843 GB, free: 15.52 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000599/0.7989, allocations: 0.9895 MB / 0.5853 GB, free: 14.3 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.09112/0.89, allocations: 35.88 MB / 0.6203 GB, free: 10.5 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0005925/0.8906, allocations: 61.7 kB / 0.6203 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.01749/0.9081, allocations: 7.531 MB / 0.6277 GB, free: 2.891 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001185/0.9093, allocations: 0.5703 MB / 0.6283 GB, free: 2.324 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009707/0.9102, allocations: 427.3 kB / 0.6287 GB, free: 1.898 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001665/0.9104, allocations: 309.1 kB / 0.629 GB, free: 1.594 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.5424/1.453, allocations: 1.963 MB / 0.6309 GB, free: 141.9 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005301/1.458, allocations: 2.859 MB / 0.6337 GB, free: 141.1 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00986/1.468, allocations: 4.2 MB / 0.6378 GB, free: 140.5 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.811e-05/1.468, allocations: 7.125 kB / 0.6378 GB, free: 140.5 MB / 0.5138 GB Notification: Performance of matching and sorting (n=248) (initialization): time 0.02005/1.488, allocations: 6.099 MB / 0.6437 GB, free: 140.3 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 4.663e-05/1.488, allocations: 12.03 kB / 0.6437 GB, free: 140.3 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.828e-05/1.488, allocations: 15.47 kB / 0.6438 GB, free: 140.3 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001203/1.489, allocations: 368.4 kB / 0.6441 GB, free: 140.3 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002667/1.492, allocations: 0.6979 MB / 0.6448 GB, free: 140.2 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005631/1.498, allocations: 4.617 MB / 0.6493 GB, free: 138.7 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008624/1.506, allocations: 0.6643 MB / 0.6499 GB, free: 138.7 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005799/1.507, allocations: 76.38 kB / 0.65 GB, free: 138.7 MB / 0.5138 GB 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.01429/1.521, allocations: 8.143 MB / 0.658 GB, free: 137.4 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006797/1.528, allocations: 1.473 MB / 0.6594 GB, free: 136.7 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01332/1.541, allocations: 6.024 MB / 0.6653 GB, free: 135.3 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.364e-05/1.541, allocations: 18.09 kB / 0.6653 GB, free: 135.3 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/1.541, allocations: 3.938 kB / 0.6653 GB, free: 135.2 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.528e-05/1.541, allocations: 10.69 kB / 0.6653 GB, free: 135.2 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04859/1.59, allocations: 18.56 MB / 0.6835 GB, free: 120.5 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.336e-06/1.59, allocations: 5.5 kB / 0.6835 GB, free: 120.5 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00163/1.591, allocations: 0.5655 MB / 0.684 GB, free: 119.9 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007909/1.592, allocations: 300.6 kB / 0.6843 GB, free: 119.6 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001273/1.592, allocations: 39.98 kB / 0.6843 GB, free: 119.6 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00358/1.596, allocations: 4.035 MB / 0.6883 GB, free: 115.4 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/1.596, allocations: 0 / 0.6883 GB, free: 115.4 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01476/1.611, allocations: 7.7 MB / 0.6958 GB, free: 107.7 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01592/1.627, allocations: 4.27 MB / 0.7 GB, free: 103.4 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00649/1.633, allocations: 44.56 kB / 0.7 GB, free: 103.4 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008443/1.642, allocations: 0.6552 MB / 0.7006 GB, free: 102.7 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001086/1.643, allocations: 432.7 kB / 0.7011 GB, free: 102.3 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001642/1.643, allocations: 47.92 kB / 0.7011 GB, free: 102.2 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.04746/1.69, allocations: 25.67 MB / 0.7262 GB, free: 76.64 MB / 0.5138 GB Notification: Performance of sort global known variables: time 3.11e-07/1.69, allocations: 4 kB / 0.7262 GB, free: 76.64 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.0113/1.702, allocations: 1.844 MB / 0.728 GB, free: 74.86 MB / 0.5138 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.02036/1.722, allocations: 8.64 MB / 0.7364 GB, free: 66.36 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.00675/1.729, allocations: 4.407 MB / 0.7407 GB, free: 61.95 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 9.759e-06/1.729, allocations: 5.406 kB / 0.7407 GB, free: 61.95 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.003004/1.732, allocations: 2.209 MB / 0.7429 GB, free: 59.72 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01893/1.751, allocations: 2.099 MB / 0.7449 GB, free: 57.67 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7973/2.548, allocations: 226.3 MB / 0.966 GB, free: 93.46 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02323/2.571, allocations: 10.2 MB / 0.9759 GB, free: 83.28 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.02071/2.592, allocations: 7.686 MB / 0.9834 GB, free: 75.63 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01646/2.608, allocations: 6.099 MB / 0.9894 GB, free: 69.53 MB / 0.5607 GB Notification: Performance of SimCode: time 1.874e-06/2.608, allocations: 0 / 0.9894 GB, free: 69.53 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9494/3.558, allocations: 331 MB / 1.313 GB, free: 121.2 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 113.7/117.2, allocations: 7.562 kB / 1.313 GB, free: 121.2 MB / 0.5763 GB " [Timeout remaining time 542] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Stack_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Stack.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Stack/CCCV_Stack.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 654] Reference file matches [Calling sys.exit(0), Time elapsed: 132.0506986649707]