Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001398/0.001398, allocations: 105.1 kB / 21.22 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001452/0.001452, allocations: 211.8 kB / 24.51 MB, free: 3.914 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.385/1.385, allocations: 230.6 MB / 258.3 MB, free: 7.766 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001512/0.001512, allocations: 43.92 kB / 378.5 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2782/0.2797, allocations: 53.37 MB / 431.9 MB, free: 6.645 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007508/0.2873, allocations: 5.404 MB / 437.3 MB, free: 1.219 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003714/0.291, allocations: 2.17 MB / 439.4 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003873/0.2914, allocations: 19.88 kB / 439.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001424/0.2928, allocations: 0.6107 MB / 440.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008442/0.2936, allocations: 453.7 kB / 440.5 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008389/0.2945, allocations: 413.6 kB / 440.9 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001527/0.296, allocations: 1.31 MB / 442.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005352/0.2965, allocations: 310.3 kB / 442.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006242/0.2971, allocations: 0.5061 MB / 443 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007191/0.2979, allocations: 0.6033 MB / 443.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001609/0.298, allocations: 116 kB / 443.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003292/0.2984, allocations: 184 kB / 443.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005655/0.2989, allocations: 0.6584 MB / 444.6 MB, free: 9.863 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007363/0.2997, allocations: 0.664 MB / 445.2 MB, free: 9.195 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002709/0.3024, allocations: 2.666 MB / 447.9 MB, free: 6.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.3024, allocations: 3.938 kB / 447.9 MB, free: 6.516 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3024, allocations: 0 / 447.9 MB, free: 6.516 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.603e-05/0.3024, allocations: 0 / 447.9 MB, free: 6.516 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.004079/0.3065, allocations: 2.366 MB / 450.3 MB, free: 4.105 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.807e-05/0.3065, allocations: 12.03 kB / 450.3 MB, free: 4.094 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.222e-05/0.3066, allocations: 13.5 kB / 450.3 MB, free: 4.078 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000142/0.3067, allocations: 110.7 kB / 450.4 MB, free: 3.961 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003242/0.307, allocations: 223.5 kB / 450.6 MB, free: 3.742 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002552/0.3096, allocations: 1.639 MB / 452.3 MB, free: 2.047 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001893/0.3098, allocations: 177.8 kB / 452.4 MB, free: 1.844 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001074/0.3099, allocations: 63.95 kB / 452.5 MB, free: 1.781 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001753/0.3116, allocations: 1.189 MB / 453.7 MB, free: 464 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.002e-05/0.3116, allocations: 0 / 453.7 MB, free: 464 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.783e-05/0.3117, allocations: 28 kB / 453.7 MB, free: 436 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.704e-05/0.3117, allocations: 16 kB / 453.7 MB, free: 420 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001049/0.3128, allocations: 0.5517 MB / 454.3 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005634/0.3184, allocations: 3.607 MB / 457.9 MB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001293/0.3197, allocations: 0.5026 MB / 458.4 MB, free: 11.63 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007519/0.3205, allocations: 342 kB / 458.7 MB, free: 11.3 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.944e-05/0.3205, allocations: 4.281 kB / 458.7 MB, free: 11.29 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.531e-05/0.3205, allocations: 46.78 kB / 458.8 MB, free: 11.24 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 1.733e-06/0.3205, allocations: 0 / 458.8 MB, free: 11.24 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002362/0.3229, allocations: 0.8769 MB / 459.7 MB, free: 10.35 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001748/0.3231, allocations: 265 kB / 459.9 MB, free: 10.03 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004497/0.3276, allocations: 3.164 MB / 463.1 MB, free: 6.832 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.469e-05/0.3277, allocations: 29.7 kB / 463.1 MB, free: 6.797 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000903/0.3286, allocations: 0.8693 MB / 464 MB, free: 5.922 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001349/0.3287, allocations: 123 kB / 464.1 MB, free: 5.801 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001916/0.3289, allocations: 94.14 kB / 464.2 MB, free: 5.703 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.329, allocations: 322 kB / 464.5 MB, free: 5.383 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000487/0.3295, allocations: 212.8 kB / 464.7 MB, free: 5.172 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007549/0.3303, allocations: 0.5904 MB / 465.3 MB, free: 4.461 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001007/0.3313, allocations: 0.5282 MB / 465.8 MB, free: 3.883 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.349e-06/0.3313, allocations: 0 / 465.8 MB, free: 3.883 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.00168/0.333, allocations: 0.7818 MB / 466.6 MB, free: 3.09 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.333, allocations: 4 kB / 466.6 MB, free: 3.086 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.333, allocations: 4 kB / 466.6 MB, free: 3.082 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003164/0.3333, allocations: 68.81 kB / 466.7 MB, free: 3.012 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004754/0.3338, allocations: 127.9 kB / 466.8 MB, free: 2.887 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001876/0.3357, allocations: 1.675 MB / 468.5 MB, free: 1.098 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005888/0.3363, allocations: 79.69 kB / 468.6 MB, free: 1.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.558e-05/0.3363, allocations: 16 kB / 468.6 MB, free: 1.004 MB / 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.0009233/0.3372, allocations: 0.6597 MB / 469.2 MB, free: 344 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002638/0.3375, allocations: 190.7 kB / 469.4 MB, free: 152 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003036/0.3378, allocations: 222.6 kB / 469.6 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.3378, allocations: 4.125 kB / 469.6 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.3378, allocations: 4 kB / 469.7 MB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.3378, allocations: 0 / 469.7 MB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003348/0.3412, allocations: 1.908 MB / 471.6 MB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.683e-06/0.3412, allocations: 7.938 kB / 471.6 MB, free: 13.94 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004024/0.3416, allocations: 87.94 kB / 471.7 MB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001897/0.3418, allocations: 60.8 kB / 471.7 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.003e-05/0.3418, allocations: 8 kB / 471.7 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001627/0.3434, allocations: 1.628 MB / 473.3 MB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.3434, allocations: 3.938 kB / 473.4 MB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001868/0.3453, allocations: 0.989 MB / 474.3 MB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007042/0.346, allocations: 378.5 kB / 474.7 MB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000167/0.3462, allocations: 12.23 kB / 474.7 MB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005141/0.3467, allocations: 55.95 kB / 474.8 MB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001204/0.3468, allocations: 47.92 kB / 474.8 MB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.484e-05/0.3468, allocations: 8 kB / 474.8 MB, free: 10.53 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003131/0.3499, allocations: 2.259 MB / 477.1 MB, free: 8.25 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3499, allocations: 3.938 kB / 477.1 MB, free: 8.246 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008461/0.3508, allocations: 259.6 kB / 477.3 MB, free: 7.992 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.00399/0.3548, allocations: 1.927 MB / 479.3 MB, free: 6.25 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001349/0.3561, allocations: 0.5927 MB / 479.9 MB, free: 5.645 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.187e-06/0.3561, allocations: 8 kB / 479.9 MB, free: 5.637 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000667/0.3568, allocations: 347.1 kB / 480.2 MB, free: 5.285 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001261/0.3581, allocations: 294.7 kB / 480.5 MB, free: 4.996 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02922/0.3873, allocations: 19.74 MB / 0.4885 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001063/0.3883, allocations: 0.9044 MB / 0.4894 GB, free: 12 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007452/0.3891, allocations: 299.3 kB / 0.4897 GB, free: 15.71 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008842/0.39, allocations: 0.6477 MB / 0.4903 GB, free: 15.07 MB / 414.1 MB Notification: Performance of SimCode: time 1.092e-06/0.39, allocations: 0 / 0.4903 GB, free: 15.07 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0832/0.4732, allocations: 37.74 MB / 0.5272 GB, free: 9.605 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.16/16.63, allocations: 3.859 kB / 0.5272 GB, free: 9.602 MB / 446.1 MB " [Timeout remaining time 643] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC.fmu > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.46036211308092]