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.001112/0.001112, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0009195/0.0009195, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9099/0.9099, allocations: 177 MB / 204.1 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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 1.573e-06/1.573e-06, allocations: 0 / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.729e-05/1.886e-05, allocations: 3.266 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.007211/0.00723, allocations: 8.773 MB / 333.3 MB, free: 7.066 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00393/0.01116, allocations: 3.348 MB / 336.6 MB, free: 3.707 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004283/0.01159, allocations: 35.75 kB / 336.7 MB, free: 3.672 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001701/0.01329, allocations: 1.159 MB / 337.8 MB, free: 2.508 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001022/0.01431, allocations: 0.6993 MB / 338.5 MB, free: 1.805 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006042/0.01491, allocations: 0.4931 MB / 339 MB, free: 1.316 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004648/0.01956, allocations: 7.472 MB / 346.5 MB, free: 9.816 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001884/0.02145, allocations: 2.143 MB / 348.6 MB, free: 7.594 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003641/0.02509, allocations: 4.196 MB / 352.8 MB, free: 3.391 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00252/0.02761, allocations: 2.983 MB / 355.8 MB, free: 412 kB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006994/0.02831, allocations: 0.6797 MB / 356.5 MB, free: 15.72 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007183/0.02903, allocations: 0.7186 MB / 357.2 MB, free: 15 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003074/0.0321, allocations: 5.916 MB / 363.1 MB, free: 9.074 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005514/0.03761, allocations: 4.204 MB / 367.3 MB, free: 4.859 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01615/0.05376, allocations: 24.43 MB / 391.8 MB, free: 12.36 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.155e-06/0.05377, allocations: 0 / 391.8 MB, free: 12.36 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.05377, allocations: 0 / 391.8 MB, free: 12.36 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0007455/0.05452, allocations: 3.984 kB / 391.8 MB, free: 12.36 MB / 362.7 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.04221/0.09672, allocations: 19.15 MB / 410.9 MB, free: 9.062 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.217e-05/0.09679, allocations: 11.98 kB / 410.9 MB, free: 9.051 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001341/0.09813, allocations: 0.4918 MB / 411.4 MB, free: 8.547 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005189/0.1033, allocations: 1.639 MB / 413.1 MB, free: 6.898 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03105/0.1344, allocations: 18.12 MB / 431.2 MB, free: 4.707 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003705/0.1347, allocations: 357.9 kB / 431.5 MB, free: 4.344 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007916/0.1355, allocations: 324 kB / 431.8 MB, free: 4.027 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01027/0.1458, allocations: 8.001 MB / 439.9 MB, free: 11.43 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.799e-05/0.1458, allocations: 11.88 kB / 439.9 MB, free: 11.42 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003378/0.1462, allocations: 144 kB / 440 MB, free: 11.28 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.376e-05/0.1462, allocations: 83.94 kB / 440.1 MB, free: 11.2 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006739/0.153, allocations: 5.126 MB / 445.2 MB, free: 6.062 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3422/0.4951, allocations: 30.72 MB / 475.9 MB, free: 79.31 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004068/0.4992, allocations: 4.174 MB / 480.1 MB, free: 75.23 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002157/0.5013, allocations: 2.48 MB / 482.6 MB, free: 72.76 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 7.353e-05/0.5014, allocations: 17.31 kB / 482.6 MB, free: 72.75 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.542e-05/0.5015, allocations: 67.86 kB / 482.7 MB, free: 72.67 MB / 410.8 MB Notification: Performance of pre-optimization done (n=156): time 3.706e-06/0.5015, allocations: 0 / 482.7 MB, free: 72.67 MB / 410.8 MB Notification: Performance of matching and sorting (n=156): time 0.01089/0.5124, allocations: 7.519 MB / 490.2 MB, free: 65.85 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001093/0.5125, allocations: 0.9863 MB / 491.2 MB, free: 64.63 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04257/0.555, allocations: 35.89 MB / 0.5147 GB, free: 28.84 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006544/0.5557, allocations: 61.7 kB / 0.5148 GB, free: 28.78 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.006959/0.5627, allocations: 7.546 MB / 0.5221 GB, free: 21.39 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005679/0.5632, allocations: 0.5667 MB / 0.5227 GB, free: 20.9 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004606/0.5637, allocations: 427.4 kB / 0.5231 GB, free: 20.48 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 2.71e-05/0.5637, allocations: 305.1 kB / 0.5234 GB, free: 20.18 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001977/0.5657, allocations: 1.967 MB / 0.5253 GB, free: 18.21 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002159/0.5678, allocations: 3.761 MB / 0.529 GB, free: 13.89 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003481/0.5713, allocations: 4.208 MB / 0.5331 GB, free: 9.473 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.027e-05/0.5713, allocations: 8 kB / 0.5331 GB, free: 9.465 MB / 410.8 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01007/0.5814, allocations: 6.091 MB / 0.539 GB, free: 3.352 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.312e-05/0.5814, allocations: 17.25 kB / 0.5391 GB, free: 3.336 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.884e-05/0.5815, allocations: 16 kB / 0.5391 GB, free: 3.32 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006183/0.5821, allocations: 363.6 kB / 0.5394 GB, free: 2.965 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0011/0.5832, allocations: 0.6902 MB / 0.5401 GB, free: 2.273 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003935/0.5871, allocations: 4.43 MB / 0.5444 GB, free: 13.76 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005528/0.5926, allocations: 0.6677 MB / 0.5451 GB, free: 13.15 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004366/0.5931, allocations: 72 kB / 0.5451 GB, free: 13.08 MB / 426.8 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.009748/0.6028, allocations: 8.143 MB / 0.5531 GB, free: 4.934 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004188/0.607, allocations: 1.475 MB / 0.5545 GB, free: 3.445 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009804/0.6168, allocations: 6.028 MB / 0.5604 GB, free: 13.4 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.459e-05/0.6168, allocations: 19.98 kB / 0.5604 GB, free: 13.38 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.6168, allocations: 3.172 kB / 0.5604 GB, free: 13.38 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.252e-05/0.6168, allocations: 11.91 kB / 0.5605 GB, free: 13.37 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03178/0.6486, allocations: 16.73 MB / 0.5768 GB, free: 12.62 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.6486, allocations: 0 / 0.5768 GB, free: 12.62 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009933/0.6496, allocations: 0.5577 MB / 0.5773 GB, free: 12.06 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005797/0.6502, allocations: 292.6 kB / 0.5776 GB, free: 11.77 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.016e-05/0.6503, allocations: 43.98 kB / 0.5777 GB, free: 11.73 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003258/0.6536, allocations: 3.871 MB / 0.5814 GB, free: 7.762 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.6536, allocations: 6.625 kB / 0.5814 GB, free: 7.758 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01109/0.6646, allocations: 7.705 MB / 0.589 GB, free: 20 kB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008676/0.6733, allocations: 4.399 MB / 0.5933 GB, free: 11.63 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003653/0.677, allocations: 43.98 kB / 0.5933 GB, free: 11.59 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00498/0.6819, allocations: 0.6591 MB / 0.5939 GB, free: 10.93 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006562/0.6826, allocations: 444.6 kB / 0.5944 GB, free: 10.5 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001069/0.6827, allocations: 40 kB / 0.5944 GB, free: 10.46 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.04/0.7227, allocations: 25.67 MB / 0.6195 GB, free: 0.8633 MB / 490.8 MB Notification: Performance of sort global known variables: time 4e-08/0.7227, allocations: 0 / 0.6195 GB, free: 0.8633 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.1758/0.8985, allocations: 1.834 MB / 0.6213 GB, free: 166.4 MB / 490.8 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.01422/0.9127, allocations: 8.658 MB / 0.6297 GB, free: 165.1 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.004139/0.9168, allocations: 4.401 MB / 0.634 GB, free: 164.1 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 7.604e-06/0.9168, allocations: 4.938 kB / 0.634 GB, free: 164.1 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001883/0.9187, allocations: 2.216 MB / 0.6362 GB, free: 163.4 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008788/0.9275, allocations: 2.115 MB / 0.6383 GB, free: 162.3 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.898/2.826, allocations: 229 MB / 0.8619 GB, free: 129.8 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007025/2.833, allocations: 9.805 MB / 0.8715 GB, free: 120 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.009533/2.842, allocations: 7.697 MB / 0.879 GB, free: 112.3 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00591/2.848, allocations: 6.099 MB / 0.885 GB, free: 106.2 MB / 0.4949 GB Notification: Performance of SimCode: time 2.314e-06/2.848, allocations: 0 / 0.885 GB, free: 106.2 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.702/3.55, allocations: 340.3 MB / 1.217 GB, free: 124.5 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 35.32/38.87, allocations: 6.281 kB / 1.217 GB, free: 124.5 MB / 0.5105 GB " [Timeout remaining time 621] (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/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) [Timeout 660] "" [Timeout remaining time 655] Reference file matches [Calling sys.exit(0), Time elapsed: 48.267253135330975]