Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001283/0.001283, allocations: 108.6 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001365/0.001365, allocations: 191.7 kB / 24.51 MB, free: 4.086 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.396/1.396, allocations: 225.6 MB / 253.3 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002179/0.002179, allocations: 47.92 kB / 371.2 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.281/0.2832, allocations: 52.19 MB / 423.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.008268/0.2915, allocations: 6.073 MB / 429.5 MB, free: 8.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003765/0.2953, allocations: 2.166 MB / 431.6 MB, free: 6.328 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004421/0.2957, allocations: 23.81 kB / 431.7 MB, free: 6.305 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001409/0.2971, allocations: 0.6235 MB / 432.3 MB, free: 5.68 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009088/0.298, allocations: 417.8 kB / 432.7 MB, free: 5.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009843/0.299, allocations: 409.9 kB / 433.1 MB, free: 4.875 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00172/0.3007, allocations: 1.302 MB / 434.4 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005811/0.3013, allocations: 310.3 kB / 434.7 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000656/0.302, allocations: 0.5139 MB / 435.2 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007371/0.3027, allocations: 0.5995 MB / 435.8 MB, free: 2.133 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001505/0.3028, allocations: 116 kB / 435.9 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003084/0.3032, allocations: 168 kB / 436.1 MB, free: 1.855 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005439/0.3037, allocations: 0.6583 MB / 436.8 MB, free: 1.195 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008052/0.3045, allocations: 0.8894 MB / 437.6 MB, free: 308 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002759/0.3073, allocations: 2.634 MB / 440.3 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.3073, allocations: 0 / 440.3 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3073, allocations: 11.94 kB / 440.3 MB, free: 13.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.665e-05/0.3073, allocations: 0 / 440.3 MB, free: 13.64 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.004057/0.3114, allocations: 2.343 MB / 442.6 MB, free: 11.26 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.3114, allocations: 8.031 kB / 442.6 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.141e-05/0.3114, allocations: 21.5 kB / 442.7 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001308/0.3116, allocations: 110.7 kB / 442.8 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003161/0.3119, allocations: 219.5 kB / 443 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002632/0.3145, allocations: 1.644 MB / 444.6 MB, free: 9.195 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000182/0.3147, allocations: 181.8 kB / 444.8 MB, free: 8.988 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.642e-05/0.3148, allocations: 60 kB / 444.9 MB, free: 8.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001471/0.3163, allocations: 0.8297 MB / 445.7 MB, free: 8.047 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.641e-05/0.3163, allocations: 0 / 445.7 MB, free: 8.047 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.571e-05/0.3163, allocations: 28 kB / 445.7 MB, free: 8.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.065e-05/0.3164, allocations: 16 kB / 445.7 MB, free: 8.004 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001071/0.3174, allocations: 0.5438 MB / 446.3 MB, free: 7.457 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006248/0.3237, allocations: 3.942 MB / 450.2 MB, free: 3.395 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0013/0.325, allocations: 0.507 MB / 450.7 MB, free: 2.879 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007672/0.3257, allocations: 346 kB / 451.1 MB, free: 2.539 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.617e-05/0.3258, allocations: 4.281 kB / 451.1 MB, free: 2.535 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.542e-05/0.3258, allocations: 38.84 kB / 451.1 MB, free: 2.488 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.793e-06/0.3258, allocations: 4 kB / 451.1 MB, free: 2.484 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002358/0.3282, allocations: 0.8661 MB / 452 MB, free: 1.609 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001773/0.3283, allocations: 277 kB / 452.2 MB, free: 1.277 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004204/0.3325, allocations: 3.144 MB / 455.4 MB, free: 14.1 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.842e-05/0.3326, allocations: 37.7 kB / 455.4 MB, free: 14.05 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008598/0.3335, allocations: 0.8614 MB / 456.3 MB, free: 13.19 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001362/0.3336, allocations: 127 kB / 456.4 MB, free: 13.06 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001733/0.3338, allocations: 94.14 kB / 456.5 MB, free: 12.96 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.334, allocations: 326 kB / 456.8 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000493/0.3344, allocations: 208.9 kB / 457 MB, free: 12.44 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006493/0.3351, allocations: 389.5 kB / 457.4 MB, free: 11.98 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000993/0.3361, allocations: 0.5167 MB / 457.9 MB, free: 11.41 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-05/0.3361, allocations: 8 kB / 457.9 MB, free: 11.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001939/0.338, allocations: 0.7817 MB / 458.7 MB, free: 10.61 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.327e-05/0.3381, allocations: 4 kB / 458.7 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.3381, allocations: 4 kB / 458.7 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003426/0.3384, allocations: 76.94 kB / 458.8 MB, free: 10.53 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004834/0.3389, allocations: 111.9 kB / 458.9 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002077/0.341, allocations: 1.683 MB / 460.6 MB, free: 8.625 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009313/0.3419, allocations: 83.61 kB / 460.7 MB, free: 8.543 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.709e-05/0.3419, allocations: 20 kB / 460.7 MB, free: 8.523 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.001208/0.3432, allocations: 0.6537 MB / 461.3 MB, free: 7.859 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003143/0.3435, allocations: 198.7 kB / 461.5 MB, free: 7.664 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003248/0.3438, allocations: 222.5 kB / 461.8 MB, free: 7.445 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.079e-06/0.3438, allocations: 4 kB / 461.8 MB, free: 7.441 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.3438, allocations: 4 kB / 461.8 MB, free: 7.438 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.327e-06/0.3438, allocations: 3.984 kB / 461.8 MB, free: 7.434 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003764/0.3476, allocations: 2.115 MB / 463.9 MB, free: 5.254 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-06/0.3476, allocations: 4.062 kB / 463.9 MB, free: 5.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003985/0.348, allocations: 83.94 kB / 464 MB, free: 5.168 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002101/0.3482, allocations: 60.81 kB / 464 MB, free: 5.105 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.118e-05/0.3482, allocations: 12.06 kB / 464 MB, free: 5.094 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001701/0.3499, allocations: 1.641 MB / 465.7 MB, free: 3.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3499, allocations: 0 / 465.7 MB, free: 3.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002124/0.352, allocations: 0.9767 MB / 466.7 MB, free: 2.336 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001072/0.3531, allocations: 386.5 kB / 467 MB, free: 1.957 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001787/0.3533, allocations: 8 kB / 467 MB, free: 1.949 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005317/0.3538, allocations: 51.95 kB / 467.1 MB, free: 1.898 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001214/0.354, allocations: 43.92 kB / 467.1 MB, free: 1.855 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.928e-05/0.354, allocations: 12 kB / 467.1 MB, free: 1.844 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003277/0.3573, allocations: 2.247 MB / 469.4 MB, free: 15.58 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3573, allocations: 0 / 469.4 MB, free: 15.58 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008775/0.3581, allocations: 255.7 kB / 469.6 MB, free: 15.33 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.003933/0.3621, allocations: 1.912 MB / 471.6 MB, free: 13.57 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00138/0.3634, allocations: 0.5967 MB / 472.2 MB, free: 12.96 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.3635, allocations: 0 / 472.2 MB, free: 12.96 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007063/0.3642, allocations: 347 kB / 472.5 MB, free: 12.61 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001489/0.3656, allocations: 290.5 kB / 472.8 MB, free: 12.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0326/0.3982, allocations: 19.77 MB / 492.5 MB, free: 8.242 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001468/0.3997, allocations: 1.492 MB / 494 MB, free: 6.723 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008162/0.4005, allocations: 307.1 kB / 494.3 MB, free: 6.418 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009067/0.4014, allocations: 0.6438 MB / 495 MB, free: 5.773 MB / 398.1 MB Notification: Performance of SimCode: time 1.072e-06/0.4014, allocations: 3.938 kB / 495 MB, free: 5.77 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08363/0.4851, allocations: 36.81 MB / 0.5193 GB, free: 1.203 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.63/16.12, allocations: 16 kB / 0.5193 GB, free: 1.188 MB / 430.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.032043747021817]