Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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.001857/0.001857, allocations: 112.2 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.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.002613/0.002613, allocations: 216.2 kB / 24.53 MB, free: 4.066 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.411/1.411, allocations: 230.6 MB / 258.3 MB, free: 7.992 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_Cell,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001492/0.001492, allocations: 43.94 kB / 378.5 MB, free: 3.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2674/0.2689, allocations: 53.36 MB / 431.9 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007607/0.2765, allocations: 5.603 MB / 437.5 MB, free: 1.223 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003172/0.2797, allocations: 1.902 MB / 439.4 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003239/0.28, allocations: 19.88 kB / 439.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00117/0.2812, allocations: 0.5252 MB / 440 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007468/0.2819, allocations: 394 kB / 440.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008457/0.2828, allocations: 381.8 kB / 440.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001132/0.2839, allocations: 0.8887 MB / 441.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004371/0.2843, allocations: 237.3 kB / 441.8 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004666/0.2848, allocations: 374.8 kB / 442.2 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005602/0.2854, allocations: 466.3 kB / 442.7 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001089/0.2855, allocations: 80 kB / 442.7 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002167/0.2857, allocations: 120 kB / 442.9 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005066/0.2862, allocations: 0.5921 MB / 443.4 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006514/0.2868, allocations: 0.7376 MB / 444.2 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002166/0.289, allocations: 2.136 MB / 446.3 MB, free: 8.387 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.289, allocations: 0 / 446.3 MB, free: 8.387 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.289, allocations: 0 / 446.3 MB, free: 8.387 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.379e-05/0.289, allocations: 0 / 446.3 MB, free: 8.387 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.00422/0.2933, allocations: 2.085 MB / 448.4 MB, free: 6.262 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.871e-05/0.2933, allocations: 8.031 kB / 448.4 MB, free: 6.254 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.906e-05/0.2934, allocations: 13.19 kB / 448.4 MB, free: 6.238 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001232/0.2935, allocations: 86.7 kB / 448.5 MB, free: 6.145 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004379/0.2939, allocations: 195.7 kB / 448.7 MB, free: 5.953 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002785/0.2967, allocations: 1.462 MB / 450.2 MB, free: 4.461 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001231/0.2968, allocations: 88.41 kB / 450.2 MB, free: 4.363 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.187e-05/0.2969, allocations: 51.98 kB / 450.3 MB, free: 4.312 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001142/0.2981, allocations: 0.5815 MB / 450.9 MB, free: 3.688 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.762e-05/0.2981, allocations: 7.938 kB / 450.9 MB, free: 3.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.285e-05/0.2981, allocations: 20 kB / 450.9 MB, free: 3.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.622e-05/0.2982, allocations: 12 kB / 450.9 MB, free: 3.648 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007419/0.2989, allocations: 343.7 kB / 451.3 MB, free: 3.309 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005143/0.304, allocations: 3.203 MB / 454.5 MB, free: 15.99 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001127/0.3052, allocations: 350.6 kB / 454.8 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000496/0.3057, allocations: 176.7 kB / 455 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.796e-05/0.3057, allocations: 3.938 kB / 455 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.899e-05/0.3057, allocations: 46.5 kB / 455 MB, free: 15.4 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 2.555e-06/0.3057, allocations: 0 / 455 MB, free: 15.4 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.001921/0.3077, allocations: 0.6207 MB / 455.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000144/0.3078, allocations: 217.6 kB / 455.9 MB, free: 14.51 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003861/0.3117, allocations: 2.908 MB / 458.8 MB, free: 11.56 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.802e-05/0.3117, allocations: 25.7 kB / 458.8 MB, free: 11.53 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007691/0.3125, allocations: 0.7939 MB / 459.6 MB, free: 10.73 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.419e-05/0.3125, allocations: 75.38 kB / 459.7 MB, free: 10.65 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001237/0.3127, allocations: 73.97 kB / 459.7 MB, free: 10.57 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.3128, allocations: 318 kB / 460 MB, free: 10.26 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003489/0.3132, allocations: 124.6 kB / 460.2 MB, free: 10.14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004936/0.3137, allocations: 290.4 kB / 460.4 MB, free: 9.785 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007218/0.3144, allocations: 353.9 kB / 460.8 MB, free: 9.391 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.793e-06/0.3144, allocations: 3.938 kB / 460.8 MB, free: 9.387 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.00129/0.3157, allocations: 0.5674 MB / 461.4 MB, free: 8.809 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.36e-05/0.3157, allocations: 8 kB / 461.4 MB, free: 8.801 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.3157, allocations: 4 kB / 461.4 MB, free: 8.797 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002903/0.316, allocations: 65 kB / 461.4 MB, free: 8.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002852/0.3163, allocations: 67.91 kB / 461.5 MB, free: 8.664 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001861/0.3181, allocations: 1.621 MB / 463.1 MB, free: 6.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005017/0.3186, allocations: 67.73 kB / 463.2 MB, free: 6.863 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.565e-05/0.3187, allocations: 16 kB / 463.2 MB, free: 6.848 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.0007751/0.3194, allocations: 0.5718 MB / 463.8 MB, free: 6.266 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002257/0.3197, allocations: 178.8 kB / 464 MB, free: 6.09 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001161/0.3208, allocations: 0.5104 MB / 464.5 MB, free: 5.57 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.3208, allocations: 4 kB / 464.5 MB, free: 5.566 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.373e-06/0.3208, allocations: 0 / 464.5 MB, free: 5.566 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.3208, allocations: 3.938 kB / 464.5 MB, free: 5.562 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002713/0.3236, allocations: 1.665 MB / 466.1 MB, free: 3.836 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-06/0.3236, allocations: 4 kB / 466.1 MB, free: 3.832 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002259/0.3238, allocations: 39.97 kB / 466.2 MB, free: 3.793 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001785/0.324, allocations: 44.83 kB / 466.2 MB, free: 3.746 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.08e-05/0.324, allocations: 15.97 kB / 466.2 MB, free: 3.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001604/0.3256, allocations: 1.57 MB / 467.8 MB, free: 2.043 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.3256, allocations: 4 kB / 467.8 MB, free: 2.039 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001543/0.3271, allocations: 0.7212 MB / 468.5 MB, free: 1.293 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006534/0.3278, allocations: 306.8 kB / 468.8 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001272/0.3279, allocations: 11.94 kB / 468.8 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004135/0.3283, allocations: 47.95 kB / 468.9 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/0.3284, allocations: 35.88 kB / 468.9 MB, free: 0.8984 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.138e-05/0.3285, allocations: 11.94 kB / 468.9 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003173/0.3316, allocations: 2.075 MB / 471 MB, free: 14.79 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3316, allocations: 0 / 471 MB, free: 14.79 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000864/0.3325, allocations: 203.7 kB / 471.2 MB, free: 14.59 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.003185/0.3357, allocations: 1.516 MB / 472.7 MB, free: 13.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001092/0.3368, allocations: 430.6 kB / 473.1 MB, free: 12.74 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.3368, allocations: 3.938 kB / 473.2 MB, free: 12.74 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005416/0.3373, allocations: 263.2 kB / 473.4 MB, free: 12.47 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001082/0.3384, allocations: 225.3 kB / 473.6 MB, free: 12.25 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02646/0.3649, allocations: 17.54 MB / 491.2 MB, free: 10.39 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001173/0.366, allocations: 1.358 MB / 492.5 MB, free: 8.996 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005706/0.3666, allocations: 246.8 kB / 492.8 MB, free: 8.75 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007851/0.3674, allocations: 0.5735 MB / 493.3 MB, free: 8.176 MB / 398.1 MB Notification: Performance of SimCode: time 1.182e-06/0.3674, allocations: 0 / 493.3 MB, free: 8.176 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07533/0.4427, allocations: 33.19 MB / 0.5142 GB, free: 7.18 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.22/15.67, allocations: 3.938 kB / 0.5142 GB, free: 7.176 MB / 430.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell.fmu > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.245793342997786]