Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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.001247/0.001247, allocations: 109.1 kB / 21.22 MB, free: 0.7539 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.001475/0.001475, allocations: 217.6 kB / 24.53 MB, free: 4.012 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.534/1.534, allocations: 230.5 MB / 258.2 MB, free: 8.008 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_CellRC,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002744/0.002744, allocations: 59.89 kB / 378.5 MB, free: 3.117 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3187/0.3214, allocations: 53.42 MB / 432 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.008472/0.3299, allocations: 6.113 MB / 438.1 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004679/0.3345, allocations: 2.333 MB / 440.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004904/0.335, allocations: 19.88 kB / 440.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001477/0.3365, allocations: 0.6224 MB / 441.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009787/0.3375, allocations: 457.6 kB / 441.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001015/0.3385, allocations: 422.6 kB / 441.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001795/0.3403, allocations: 1.317 MB / 443.2 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005909/0.3409, allocations: 307.3 kB / 443.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007692/0.3417, allocations: 0.5023 MB / 444 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007779/0.3424, allocations: 0.6111 MB / 444.6 MB, free: 9.977 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001486/0.3426, allocations: 116 kB / 444.8 MB, free: 9.863 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003214/0.3429, allocations: 168 kB / 444.9 MB, free: 9.699 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005518/0.3435, allocations: 0.6662 MB / 445.6 MB, free: 9.031 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008178/0.3443, allocations: 0.8893 MB / 446.5 MB, free: 8.137 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00304/0.3473, allocations: 2.65 MB / 449.1 MB, free: 5.477 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.3473, allocations: 4 kB / 449.1 MB, free: 5.473 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.766e-06/0.3473, allocations: 0 / 449.1 MB, free: 5.473 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.269e-05/0.3474, allocations: 0 / 449.1 MB, free: 5.473 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.004477/0.3518, allocations: 2.354 MB / 451.5 MB, free: 3.074 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.768e-05/0.3519, allocations: 8.031 kB / 451.5 MB, free: 3.066 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.824e-05/0.3519, allocations: 17.5 kB / 451.5 MB, free: 3.047 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001387/0.3521, allocations: 118.6 kB / 451.6 MB, free: 2.922 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003497/0.3524, allocations: 227.5 kB / 451.8 MB, free: 2.699 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002703/0.3551, allocations: 1.632 MB / 453.5 MB, free: 1.012 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001954/0.3553, allocations: 185.8 kB / 453.7 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001071/0.3554, allocations: 63.95 kB / 453.7 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001518/0.3569, allocations: 0.8336 MB / 454.6 MB, free: 15.85 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.357, allocations: 4 kB / 454.6 MB, free: 15.85 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.656e-05/0.357, allocations: 27.94 kB / 454.6 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.584e-05/0.357, allocations: 16 kB / 454.6 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001091/0.3581, allocations: 0.5516 MB / 455.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006388/0.3645, allocations: 3.934 MB / 459.1 MB, free: 11.2 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00133/0.3659, allocations: 0.5112 MB / 459.6 MB, free: 10.69 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007875/0.3666, allocations: 352.7 kB / 459.9 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.152e-05/0.3667, allocations: 4.281 kB / 459.9 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.47e-05/0.3667, allocations: 38.84 kB / 460 MB, free: 10.29 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.485e-06/0.3667, allocations: 0 / 460 MB, free: 10.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002595/0.3693, allocations: 0.8736 MB / 460.9 MB, free: 9.41 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001683/0.3695, allocations: 265 kB / 461.1 MB, free: 9.09 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004555/0.374, allocations: 3.156 MB / 464.3 MB, free: 5.898 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.387e-05/0.3741, allocations: 37.7 kB / 464.3 MB, free: 5.855 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009022/0.375, allocations: 0.8653 MB / 465.2 MB, free: 4.984 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001275/0.3751, allocations: 127 kB / 465.3 MB, free: 4.859 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001895/0.3753, allocations: 94.16 kB / 465.4 MB, free: 4.762 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001877/0.3755, allocations: 326 kB / 465.7 MB, free: 4.438 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000472/0.376, allocations: 204.9 kB / 465.9 MB, free: 4.234 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006476/0.3766, allocations: 393.5 kB / 466.3 MB, free: 3.777 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001008/0.3776, allocations: 0.5282 MB / 466.8 MB, free: 3.199 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.908e-06/0.3776, allocations: 0 / 466.8 MB, free: 3.199 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001644/0.3793, allocations: 0.778 MB / 467.6 MB, free: 2.41 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.3793, allocations: 8 kB / 467.6 MB, free: 2.402 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.3793, allocations: 8 kB / 467.6 MB, free: 2.395 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003302/0.3796, allocations: 68.77 kB / 467.7 MB, free: 2.324 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000469/0.3801, allocations: 111.9 kB / 467.8 MB, free: 2.215 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001972/0.3821, allocations: 1.699 MB / 469.5 MB, free: 412 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006589/0.3827, allocations: 71.59 kB / 469.6 MB, free: 340 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.542e-05/0.3828, allocations: 20 kB / 469.6 MB, free: 320 kB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 4 (cccvCharger.CV,energy.local_reset,cell.limIntegrator.local_reset,cell.cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * 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 {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.001003/0.3838, allocations: 0.6539 MB / 470.2 MB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002819/0.3841, allocations: 198.7 kB / 470.4 MB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003022/0.3844, allocations: 222.6 kB / 470.6 MB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.3844, allocations: 3.938 kB / 470.7 MB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.3844, allocations: 4 kB / 470.7 MB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.3844, allocations: 0 / 470.7 MB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003549/0.3879, allocations: 2.127 MB / 472.8 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.3879, allocations: 0 / 472.8 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004064/0.3883, allocations: 83.92 kB / 472.9 MB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002012/0.3885, allocations: 68.81 kB / 472.9 MB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.639e-05/0.3886, allocations: 12 kB / 472.9 MB, free: 12.87 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001667/0.3902, allocations: 1.632 MB / 474.6 MB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.3902, allocations: 4.094 kB / 474.6 MB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001997/0.3922, allocations: 0.9877 MB / 475.6 MB, free: 10.1 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007995/0.393, allocations: 382.5 kB / 475.9 MB, free: 9.727 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001558/0.3932, allocations: 8 kB / 475.9 MB, free: 9.719 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000543/0.3937, allocations: 63.94 kB / 476 MB, free: 9.656 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001164/0.3939, allocations: 39.92 kB / 476 MB, free: 9.617 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.749e-05/0.3939, allocations: 8 kB / 476.1 MB, free: 9.609 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003212/0.3971, allocations: 2.259 MB / 478.3 MB, free: 7.332 MB / 382.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.3971, allocations: 0 / 478.3 MB, free: 7.332 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000921/0.398, allocations: 255.6 kB / 478.6 MB, free: 7.082 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (cell.cell.limIntegrator.y,cell.cell.capacitor[1].v,cell.cell.capacitor[2].v,cell.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 (29): * Single equations (assignments): 28 * 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 {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003938/0.402, allocations: 1.891 MB / 480.5 MB, free: 5.32 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001417/0.4034, allocations: 0.585 MB / 481 MB, free: 4.723 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.602e-06/0.4034, allocations: 8 kB / 481 MB, free: 4.715 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006832/0.4041, allocations: 351.1 kB / 481.4 MB, free: 4.359 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001391/0.4055, allocations: 286.8 kB / 481.7 MB, free: 4.078 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03408/0.4395, allocations: 19.76 MB / 0.4897 GB, free: 8 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001938/0.4415, allocations: 1.5 MB / 0.4911 GB, free: 14.48 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001037/0.4425, allocations: 295.2 kB / 0.4914 GB, free: 14.18 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001313/0.4438, allocations: 0.6438 MB / 0.4921 GB, free: 13.54 MB / 414.1 MB Notification: Performance of SimCode: time 2.384e-06/0.4438, allocations: 4 kB / 0.4921 GB, free: 13.54 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08646/0.5303, allocations: 36.89 MB / 0.5281 GB, free: 8.809 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.15/16.68, allocations: 7.938 kB / 0.5281 GB, free: 8.805 MB / 446.1 MB " [Timeout remaining time 643] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 21.743836867972277]