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.001292/0.001292, allocations: 111.1 kB / 20.44 MB, free: 1.352 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.001511/0.001511, allocations: 216.4 kB / 23.73 MB, free: 4.531 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.705/1.705, allocations: 230.5 MB / 257.4 MB, free: 7.758 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.001912/0.001912, allocations: 59.91 kB / 377.7 MB, free: 2.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2952/0.2972, allocations: 53.42 MB / 431.1 MB, free: 6.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01204/0.3092, allocations: 8.754 MB / 439.9 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005861/0.3151, allocations: 3.349 MB / 443.2 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009164/0.316, allocations: 31.81 kB / 443.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002682/0.3187, allocations: 1.148 MB / 444.4 MB, free: 9.148 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001514/0.3202, allocations: 0.688 MB / 445.1 MB, free: 8.457 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001053/0.3212, allocations: 498.7 kB / 445.6 MB, free: 7.973 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008104/0.3293, allocations: 7.309 MB / 452.9 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003429/0.3328, allocations: 2.147 MB / 455 MB, free: 14.41 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004323/0.3371, allocations: 2.988 MB / 458 MB, free: 11.42 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005463/0.3425, allocations: 3.317 MB / 461.3 MB, free: 8.09 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00162/0.3442, allocations: 0.6836 MB / 462 MB, free: 7.406 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001727/0.3459, allocations: 0.7148 MB / 462.7 MB, free: 6.691 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00519/0.3511, allocations: 5.833 MB / 468.6 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009658/0.3607, allocations: 5.283 MB / 473.9 MB, free: 11.53 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0279/0.3886, allocations: 25.17 MB / 499 MB, free: 2.281 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.664e-06/0.3886, allocations: 0 / 499 MB, free: 2.281 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.3886, allocations: 0 / 499 MB, free: 2.281 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0009081/0.3896, allocations: 0 / 499 MB, free: 2.281 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.05555/0.4451, allocations: 19.33 MB / 0.5062 GB, free: 14.81 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.907e-05/0.4452, allocations: 15.98 kB / 0.5062 GB, free: 14.79 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001608/0.4468, allocations: 499.6 kB / 0.5067 GB, free: 14.29 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006321/0.4531, allocations: 1.639 MB / 0.5083 GB, free: 12.64 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04977/0.5029, allocations: 18.1 MB / 0.526 GB, free: 10.46 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005647/0.5034, allocations: 369.9 kB / 0.5263 GB, free: 10.09 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00121/0.5046, allocations: 331.9 kB / 0.5267 GB, free: 9.766 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01723/0.5219, allocations: 8.009 MB / 0.5345 GB, free: 1.164 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001235/0.522, allocations: 7.922 kB / 0.5345 GB, free: 1.156 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001099/0.5231, allocations: 144 kB / 0.5346 GB, free: 1.016 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.393e-05/0.5232, allocations: 80 kB / 0.5347 GB, free: 0.9375 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.52/1.043, allocations: 5.121 MB / 0.5397 GB, free: 80.31 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06211/1.105, allocations: 30.73 MB / 0.5697 GB, free: 58.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006997/1.112, allocations: 4.173 MB / 0.5738 GB, free: 54.12 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003596/1.116, allocations: 2.462 MB / 0.5762 GB, free: 51.67 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.675e-05/1.116, allocations: 21.31 kB / 0.5762 GB, free: 51.64 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.883e-05/1.116, allocations: 71.47 kB / 0.5763 GB, free: 51.57 MB / 446.1 MB Notification: Performance of pre-optimization done (n=156): time 4.187e-06/1.116, allocations: 0 / 0.5763 GB, free: 51.57 MB / 446.1 MB Notification: Performance of matching and sorting (n=156): time 0.0165/1.133, allocations: 7.509 MB / 0.5836 GB, free: 44.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002148/1.133, allocations: 0.9863 MB / 0.5846 GB, free: 43.28 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.06183/1.195, allocations: 35.9 MB / 0.6196 GB, free: 7.48 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004691/1.195, allocations: 61.7 kB / 0.6197 GB, free: 7.414 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01035/1.205, allocations: 7.548 MB / 0.6271 GB, free: 24 kB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009607/1.206, allocations: 0.5708 MB / 0.6276 GB, free: 15.53 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008926/1.207, allocations: 431.3 kB / 0.628 GB, free: 15.1 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001375/1.207, allocations: 307.3 kB / 0.6283 GB, free: 14.8 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003919/1.211, allocations: 1.967 MB / 0.6302 GB, free: 12.82 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005591/1.217, allocations: 3.765 MB / 0.6339 GB, free: 8.516 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008129/1.225, allocations: 4.212 MB / 0.638 GB, free: 4.098 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.73e-05/1.225, allocations: 4 kB / 0.638 GB, free: 4.094 MB / 462.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01682/1.242, allocations: 6.097 MB / 0.644 GB, free: 13.98 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.558e-05/1.242, allocations: 12 kB / 0.644 GB, free: 13.96 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.752e-05/1.242, allocations: 16 kB / 0.644 GB, free: 13.95 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001052/1.243, allocations: 367.8 kB / 0.6444 GB, free: 13.59 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002371/1.245, allocations: 0.6941 MB / 0.645 GB, free: 12.89 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006039/1.251, allocations: 4.444 MB / 0.6494 GB, free: 8.367 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007829/1.259, allocations: 0.6665 MB / 0.65 GB, free: 7.758 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004492/1.26, allocations: 79.98 kB / 0.6501 GB, free: 7.68 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.274, allocations: 8.134 MB / 0.658 GB, free: 15.54 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006173/1.28, allocations: 1.475 MB / 0.6595 GB, free: 14.06 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01456/1.295, allocations: 6.016 MB / 0.6654 GB, free: 8.027 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.796e-05/1.295, allocations: 12 kB / 0.6654 GB, free: 8.016 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/1.295, allocations: 21.78 kB / 0.6654 GB, free: 7.996 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.5e-05/1.295, allocations: 3.984 kB / 0.6654 GB, free: 7.992 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0477/1.342, allocations: 16.73 MB / 0.6817 GB, free: 7.215 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.367e-06/1.342, allocations: 0 / 0.6817 GB, free: 7.215 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002064/1.344, allocations: 0.5655 MB / 0.6823 GB, free: 6.648 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008899/1.345, allocations: 296 kB / 0.6826 GB, free: 6.359 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001617/1.346, allocations: 39.92 kB / 0.6826 GB, free: 6.32 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005193/1.351, allocations: 3.878 MB / 0.6864 GB, free: 2.348 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/1.351, allocations: 0 / 0.6864 GB, free: 2.348 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01771/1.368, allocations: 7.708 MB / 0.6939 GB, free: 10.6 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01705/1.385, allocations: 4.39 MB / 0.6982 GB, free: 6.219 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004774/1.39, allocations: 47.98 kB / 0.6983 GB, free: 6.172 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007708/1.398, allocations: 0.6552 MB / 0.6989 GB, free: 5.516 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001093/1.399, allocations: 444.6 kB / 0.6993 GB, free: 5.082 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001632/1.399, allocations: 44 kB / 0.6994 GB, free: 5.039 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.05945/1.459, allocations: 25.66 MB / 0.7244 GB, free: 11.45 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.51e-07/1.459, allocations: 0 / 0.7244 GB, free: 11.45 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01222/1.471, allocations: 1.844 MB / 0.7262 GB, free: 9.672 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.02139/1.492, allocations: 8.662 MB / 0.7347 GB, free: 1.105 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009036/1.501, allocations: 4.401 MB / 0.739 GB, free: 12.7 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.468e-05/1.501, allocations: 9.094 kB / 0.739 GB, free: 12.69 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.004203/1.506, allocations: 2.213 MB / 0.7411 GB, free: 10.46 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01809/1.524, allocations: 2.095 MB / 0.7432 GB, free: 8.379 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.022/2.546, allocations: 226.3 MB / 0.9642 GB, free: 194.6 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02061/2.566, allocations: 9.807 MB / 0.9737 GB, free: 192.5 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.01923/2.585, allocations: 7.694 MB / 0.9813 GB, free: 189.9 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01355/2.599, allocations: 6.102 MB / 0.9872 GB, free: 184.4 MB / 0.5607 GB Notification: Performance of SimCode: time 2.014e-06/2.599, allocations: 0 / 0.9872 GB, free: 184.4 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6819/3.281, allocations: 340.9 MB / 1.32 GB, free: 67.06 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 93.73/97.01, allocations: 1.75 kB / 1.32 GB, free: 67.06 MB / 0.5763 GB " [Timeout remaining time 563] (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: 110.43608182063326]