Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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.001271/0.001271, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.001466/0.001466, allocations: 209.4 kB / 24.51 MB, free: 3.941 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.442/1.442, allocations: 230.5 MB / 258.2 MB, free: 7.785 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_Cell,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001796/0.001796, allocations: 63.89 kB / 378.5 MB, free: 2.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2861/0.2879, allocations: 53.41 MB / 431.9 MB, free: 6.461 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.008298/0.2962, allocations: 4.955 MB / 436.9 MB, free: 1.488 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003424/0.2996, allocations: 1.792 MB / 438.6 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005214/0.3002, allocations: 19.88 kB / 438.7 MB, free: 15.67 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001273/0.3014, allocations: 0.5057 MB / 439.2 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009716/0.3024, allocations: 394 kB / 439.6 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008687/0.3033, allocations: 374.3 kB / 439.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001162/0.3044, allocations: 0.8926 MB / 440.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004419/0.3049, allocations: 241.2 kB / 441 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004904/0.3054, allocations: 374.8 kB / 441.4 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005494/0.3059, allocations: 470.3 kB / 441.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001094/0.306, allocations: 76 kB / 441.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002511/0.3063, allocations: 127.9 kB / 442.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005343/0.3068, allocations: 0.5844 MB / 442.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005967/0.3074, allocations: 0.5512 MB / 443.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002291/0.3097, allocations: 2.148 MB / 445.4 MB, free: 8.953 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.3097, allocations: 7.938 kB / 445.4 MB, free: 8.945 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.3097, allocations: 0 / 445.4 MB, free: 8.945 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.196e-05/0.3097, allocations: 0 / 445.4 MB, free: 8.945 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.003682/0.3134, allocations: 2.077 MB / 447.4 MB, free: 6.828 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.663e-05/0.3135, allocations: 12.03 kB / 447.5 MB, free: 6.816 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.27e-05/0.3135, allocations: 13.19 kB / 447.5 MB, free: 6.801 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001185/0.3136, allocations: 94.7 kB / 447.6 MB, free: 6.699 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003117/0.3139, allocations: 191.7 kB / 447.7 MB, free: 6.512 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002891/0.3168, allocations: 1.451 MB / 449.2 MB, free: 5.031 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001743/0.317, allocations: 96.34 kB / 449.3 MB, free: 4.926 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001206/0.3171, allocations: 44 kB / 449.3 MB, free: 4.883 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001358/0.3185, allocations: 0.8364 MB / 450.2 MB, free: 3.938 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.597e-05/0.3185, allocations: 0 / 450.2 MB, free: 3.938 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.382e-05/0.3185, allocations: 28 kB / 450.2 MB, free: 3.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.356e-05/0.3186, allocations: 12 kB / 450.2 MB, free: 3.898 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007184/0.3193, allocations: 343.8 kB / 450.5 MB, free: 3.562 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006481/0.3258, allocations: 2.938 MB / 453.5 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001555/0.3273, allocations: 369.7 kB / 453.8 MB, free: 148 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006541/0.328, allocations: 168.8 kB / 454 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.567e-05/0.328, allocations: 4 kB / 454 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.664e-05/0.3281, allocations: 38.56 kB / 454 MB, free: 15.93 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 3.967e-06/0.3281, allocations: 0 / 454 MB, free: 15.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.002767/0.3309, allocations: 0.6263 MB / 454.7 MB, free: 15.29 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001485/0.331, allocations: 213.6 kB / 454.9 MB, free: 15.03 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006228/0.3372, allocations: 2.904 MB / 457.8 MB, free: 12.08 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.122e-05/0.3373, allocations: 29.7 kB / 457.8 MB, free: 12.05 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001098/0.3384, allocations: 0.7899 MB / 458.6 MB, free: 11.25 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001178/0.3385, allocations: 75.38 kB / 458.7 MB, free: 11.18 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001894/0.3387, allocations: 73.97 kB / 458.8 MB, free: 11.1 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002231/0.3389, allocations: 318 kB / 459.1 MB, free: 10.78 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004839/0.3394, allocations: 124.6 kB / 459.2 MB, free: 10.66 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000753/0.3402, allocations: 450 kB / 459.6 MB, free: 10.12 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001062/0.3412, allocations: 354.3 kB / 460 MB, free: 9.719 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/0.3412, allocations: 0 / 460 MB, free: 9.719 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001999/0.3432, allocations: 0.5709 MB / 460.5 MB, free: 9.137 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.681e-05/0.3433, allocations: 10.5 kB / 460.6 MB, free: 9.129 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.333e-05/0.3433, allocations: 4.406 kB / 460.6 MB, free: 9.125 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003952/0.3437, allocations: 64.8 kB / 460.6 MB, free: 9.059 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004169/0.3441, allocations: 75.84 kB / 460.7 MB, free: 8.984 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002292/0.3464, allocations: 1.609 MB / 462.3 MB, free: 7.262 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000629/0.347, allocations: 63.64 kB / 462.4 MB, free: 7.199 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.265e-05/0.347, allocations: 19.94 kB / 462.4 MB, free: 7.18 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (36): * Single equations (assignments): 35 * 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 prepare postOptimizeDAE: time 0.0009112/0.348, allocations: 0.568 MB / 463 MB, free: 6.602 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000424/0.3484, allocations: 182.8 kB / 463.1 MB, free: 6.422 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001491/0.3499, allocations: 0.5103 MB / 463.6 MB, free: 5.902 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.752e-06/0.3499, allocations: 4 kB / 463.6 MB, free: 5.898 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.3499, allocations: 0 / 463.6 MB, free: 5.898 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.3499, allocations: 0 / 463.6 MB, free: 5.898 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003751/0.3536, allocations: 1.493 MB / 465.1 MB, free: 4.344 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.3536, allocations: 4 kB / 465.1 MB, free: 4.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003375/0.354, allocations: 39.97 kB / 465.2 MB, free: 4.301 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002522/0.3542, allocations: 52.8 kB / 465.2 MB, free: 4.246 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.648e-05/0.3543, allocations: 11.98 kB / 465.2 MB, free: 4.234 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00224/0.3565, allocations: 1.55 MB / 466.8 MB, free: 2.566 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.961e-06/0.3565, allocations: 4.031 kB / 466.8 MB, free: 2.562 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002444/0.359, allocations: 0.7193 MB / 467.5 MB, free: 1.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001111/0.3601, allocations: 318.7 kB / 467.8 MB, free: 1.508 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003916/0.3605, allocations: 8 kB / 467.8 MB, free: 1.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000826/0.3613, allocations: 47.95 kB / 467.9 MB, free: 1.453 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001445/0.3614, allocations: 31.95 kB / 467.9 MB, free: 1.422 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.002e-05/0.3615, allocations: 4 kB / 467.9 MB, free: 1.418 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.005029/0.3665, allocations: 2.075 MB / 470 MB, free: 15.32 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3665, allocations: 0 / 470 MB, free: 15.32 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001391/0.3679, allocations: 203.7 kB / 470.2 MB, free: 15.12 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (cell.cell.limIntegrator.y,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 (18): * Single equations (assignments): 17 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004458/0.3723, allocations: 1.532 MB / 471.7 MB, free: 13.68 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001571/0.3739, allocations: 423.2 kB / 472.1 MB, free: 13.25 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.829e-06/0.3739, allocations: 8 kB / 472.1 MB, free: 13.24 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007878/0.3747, allocations: 266.5 kB / 472.4 MB, free: 12.97 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001979/0.3767, allocations: 226.6 kB / 472.6 MB, free: 12.75 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0333/0.41, allocations: 17.54 MB / 490.2 MB, free: 10.89 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001139/0.4111, allocations: 0.7629 MB / 490.9 MB, free: 10.09 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006652/0.4118, allocations: 246.8 kB / 491.2 MB, free: 9.84 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008857/0.4127, allocations: 0.5735 MB / 491.7 MB, free: 9.266 MB / 398.1 MB Notification: Performance of SimCode: time 1.072e-06/0.4127, allocations: 0 / 491.7 MB, free: 9.266 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07835/0.491, allocations: 34.11 MB / 0.5135 GB, free: 7.312 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.7/16.19, allocations: 2.344 kB / 0.5135 GB, free: 7.312 MB / 430.1 MB " [Timeout remaining time 644] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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: 20.898233844083734]