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.001386/0.001386, allocations: 114 kB / 20.44 MB, free: 1.469 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.001544/0.001544, allocations: 214 kB / 23.74 MB, free: 4.695 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.455/1.455, allocations: 230.5 MB / 257.4 MB, free: 8.02 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.002264/0.002264, allocations: 71.89 kB / 377.8 MB, free: 3.051 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2609/0.2632, allocations: 53.42 MB / 431.2 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01313/0.2763, allocations: 10.16 MB / 441.3 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007126/0.2834, allocations: 3.66 MB / 445 MB, free: 8.828 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001242/0.2847, allocations: 31.81 kB / 445 MB, free: 8.797 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003605/0.2883, allocations: 1.194 MB / 446.2 MB, free: 7.598 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002293/0.2906, allocations: 0.6841 MB / 446.9 MB, free: 6.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001547/0.2921, allocations: 0.4911 MB / 447.4 MB, free: 6.422 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01081/0.3029, allocations: 7.318 MB / 454.7 MB, free: 15.08 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003833/0.3068, allocations: 2.1 MB / 456.8 MB, free: 12.9 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004314/0.3111, allocations: 2.925 MB / 459.8 MB, free: 9.969 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005308/0.3164, allocations: 2.981 MB / 462.7 MB, free: 6.977 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001789/0.3182, allocations: 0.6836 MB / 463.4 MB, free: 6.293 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002356/0.3205, allocations: 0.7226 MB / 464.1 MB, free: 5.57 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006608/0.3271, allocations: 5.833 MB / 470 MB, free: 15.72 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01076/0.3379, allocations: 7.187 MB / 477.2 MB, free: 8.496 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0269/0.3648, allocations: 25.02 MB / 0.4904 GB, free: 15.39 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.3648, allocations: 0 / 0.4904 GB, free: 15.39 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.3648, allocations: 0 / 0.4904 GB, free: 15.39 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0007896/0.3656, allocations: 0 / 0.4904 GB, free: 15.39 MB / 414.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.05802/0.4236, allocations: 19.33 MB / 0.5093 GB, free: 11.92 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.845e-05/0.4237, allocations: 12.03 kB / 0.5093 GB, free: 11.91 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001955/0.4256, allocations: 499.6 kB / 0.5098 GB, free: 11.41 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007333/0.433, allocations: 1.639 MB / 0.5114 GB, free: 9.758 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04486/0.4778, allocations: 18.11 MB / 0.5291 GB, free: 7.57 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004792/0.4783, allocations: 361.9 kB / 0.5294 GB, free: 7.203 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001012/0.4793, allocations: 320 kB / 0.5297 GB, free: 6.891 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01201/0.4913, allocations: 6.503 MB / 0.5361 GB, free: 168 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.932e-05/0.4914, allocations: 4 kB / 0.5361 GB, free: 164 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004094/0.4918, allocations: 144 kB / 0.5362 GB, free: 20 kB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.4166/0.9083, allocations: 79.11 kB / 0.5363 GB, free: 81.3 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01123/0.9196, allocations: 5.118 MB / 0.5413 GB, free: 80.21 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05473/0.9743, allocations: 33.54 MB / 0.574 GB, free: 54.76 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006126/0.9804, allocations: 4.184 MB / 0.5781 GB, free: 50.66 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003304/0.9837, allocations: 2.468 MB / 0.5805 GB, free: 48.2 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001045/0.9838, allocations: 21.42 kB / 0.5806 GB, free: 48.18 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.025e-05/0.9839, allocations: 67.86 kB / 0.5806 GB, free: 48.11 MB / 446.1 MB Notification: Performance of pre-optimization done (n=156): time 3.557e-06/0.9839, allocations: 0 / 0.5806 GB, free: 48.11 MB / 446.1 MB Notification: Performance of matching and sorting (n=156): time 0.01574/0.9996, allocations: 7.51 MB / 0.588 GB, free: 41.04 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001611/0.9998, allocations: 0.9902 MB / 0.5889 GB, free: 39.81 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.06118/1.061, allocations: 35.88 MB / 0.624 GB, free: 4.02 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005133/1.061, allocations: 61.7 kB / 0.624 GB, free: 3.953 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01435/1.076, allocations: 7.539 MB / 0.6314 GB, free: 12.59 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000933/1.077, allocations: 0.5772 MB / 0.6319 GB, free: 12.07 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000968/1.078, allocations: 427.4 kB / 0.6323 GB, free: 11.65 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001388/1.078, allocations: 309.1 kB / 0.6326 GB, free: 11.34 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003915/1.082, allocations: 1.971 MB / 0.6346 GB, free: 9.371 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004657/1.086, allocations: 2.85 MB / 0.6374 GB, free: 6.199 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007617/1.094, allocations: 4.204 MB / 0.6415 GB, free: 1.785 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.881e-05/1.094, allocations: 10.52 kB / 0.6415 GB, free: 1.777 MB / 462.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01684/1.111, allocations: 6.099 MB / 0.6474 GB, free: 11.65 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.148e-05/1.111, allocations: 12 kB / 0.6474 GB, free: 11.64 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.61e-05/1.111, allocations: 19.98 kB / 0.6475 GB, free: 11.62 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001219/1.112, allocations: 363.4 kB / 0.6478 GB, free: 11.27 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002657/1.115, allocations: 0.6941 MB / 0.6485 GB, free: 10.57 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006915/1.122, allocations: 4.509 MB / 0.6529 GB, free: 5.969 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007525/1.129, allocations: 0.6607 MB / 0.6535 GB, free: 5.367 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004844/1.13, allocations: 76 kB / 0.6536 GB, free: 5.293 MB / 478.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.01421/1.144, allocations: 8.148 MB / 0.6616 GB, free: 13.14 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005541/1.15, allocations: 1.471 MB / 0.663 GB, free: 11.66 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0172/1.167, allocations: 6.026 MB / 0.6689 GB, free: 5.629 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.099e-05/1.167, allocations: 19.94 kB / 0.6689 GB, free: 5.609 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/1.167, allocations: 4 kB / 0.6689 GB, free: 5.605 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.676e-05/1.167, allocations: 7.969 kB / 0.6689 GB, free: 5.598 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04994/1.217, allocations: 18.81 MB / 0.6873 GB, free: 2.738 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.618e-06/1.217, allocations: 0 / 0.6873 GB, free: 2.738 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002053/1.219, allocations: 0.5694 MB / 0.6878 GB, free: 2.168 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009725/1.22, allocations: 300.2 kB / 0.6881 GB, free: 1.875 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001892/1.22, allocations: 39.98 kB / 0.6882 GB, free: 1.836 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005385/1.225, allocations: 3.916 MB / 0.692 GB, free: 13.81 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/1.225, allocations: 4 kB / 0.692 GB, free: 13.81 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0173/1.243, allocations: 7.706 MB / 0.6995 GB, free: 6.066 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0145/1.257, allocations: 4.401 MB / 0.7038 GB, free: 1.676 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004805/1.262, allocations: 51.98 kB / 0.7039 GB, free: 1.625 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007051/1.269, allocations: 0.6513 MB / 0.7045 GB, free: 0.9727 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001253/1.27, allocations: 444.6 kB / 0.7049 GB, free: 0.5391 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000346/1.271, allocations: 39.98 kB / 0.705 GB, free: 0.5 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.06244/1.333, allocations: 25.68 MB / 0.73 GB, free: 6.891 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.1e-07/1.333, allocations: 0 / 0.73 GB, free: 6.891 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01068/1.344, allocations: 1.845 MB / 0.7318 GB, free: 5.113 MB / 0.545 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.02062/1.364, allocations: 8.643 MB / 0.7403 GB, free: 12.56 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.008949/1.373, allocations: 4.408 MB / 0.7446 GB, free: 8.145 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.324e-05/1.373, allocations: 5.156 kB / 0.7446 GB, free: 8.141 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.00455/1.378, allocations: 2.213 MB / 0.7467 GB, free: 5.914 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02354/1.401, allocations: 2.104 MB / 0.7488 GB, free: 3.828 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9155/2.317, allocations: 226.4 MB / 0.9699 GB, free: 164 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01696/2.334, allocations: 10.2 MB / 0.9798 GB, free: 163 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.01642/2.35, allocations: 7.687 MB / 0.9873 GB, free: 162.6 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01496/2.365, allocations: 6.1 MB / 0.9933 GB, free: 160 MB / 0.5607 GB Notification: Performance of SimCode: time 2.094e-06/2.365, allocations: 0 / 0.9933 GB, free: 160 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6697/3.035, allocations: 332.7 MB / 1.318 GB, free: 68.63 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 113.3/116.3, allocations: 13.16 kB / 1.318 GB, free: 68.62 MB / 0.5763 GB " [Timeout remaining time 543] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Stack/CCCV_Stack.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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 655] Reference file matches [Calling sys.exit(0), Time elapsed: 129.3458682759665]