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.001765/0.001765, allocations: 109.1 kB / 21.22 MB, free: 0.7461 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.002186/0.002186, allocations: 212.7 kB / 24.52 MB, free: 4.141 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.468/1.468, allocations: 230.5 MB / 258.2 MB, free: 8.039 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.001864/0.001864, allocations: 67.89 kB / 378.6 MB, free: 3.047 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2869/0.2888, allocations: 53.41 MB / 432 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.008384/0.2972, allocations: 5.586 MB / 437.6 MB, free: 1.098 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003447/0.3006, allocations: 1.916 MB / 439.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000388/0.301, allocations: 19.88 kB / 439.5 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001109/0.3021, allocations: 0.5252 MB / 440 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000826/0.3029, allocations: 386 kB / 440.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009651/0.3039, allocations: 374.9 kB / 440.8 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00133/0.3052, allocations: 0.8965 MB / 441.7 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004967/0.3057, allocations: 233.3 kB / 441.9 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005632/0.3063, allocations: 374.8 kB / 442.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005993/0.3069, allocations: 466.3 kB / 442.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001208/0.307, allocations: 80 kB / 442.8 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002805/0.3073, allocations: 123.9 kB / 442.9 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005665/0.3078, allocations: 0.5844 MB / 443.5 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000732/0.3086, allocations: 0.7415 MB / 444.2 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002583/0.3112, allocations: 2.132 MB / 446.4 MB, free: 8.262 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.3112, allocations: 0 / 446.4 MB, free: 8.262 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.3112, allocations: 0 / 446.4 MB, free: 8.262 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.705e-05/0.3112, allocations: 0 / 446.4 MB, free: 8.262 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.004263/0.3155, allocations: 2.081 MB / 448.4 MB, free: 6.141 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.613e-05/0.3155, allocations: 12.03 kB / 448.4 MB, free: 6.129 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.712e-05/0.3155, allocations: 13.19 kB / 448.5 MB, free: 6.113 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001304/0.3157, allocations: 98.62 kB / 448.6 MB, free: 6.008 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003697/0.316, allocations: 195.7 kB / 448.7 MB, free: 5.816 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002776/0.3188, allocations: 1.455 MB / 450.2 MB, free: 4.332 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000145/0.319, allocations: 96.33 kB / 450.3 MB, free: 4.227 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.495e-05/0.3191, allocations: 48 kB / 450.3 MB, free: 4.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001218/0.3203, allocations: 0.5893 MB / 450.9 MB, free: 3.543 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.765e-05/0.3203, allocations: 0 / 450.9 MB, free: 3.543 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.103e-05/0.3203, allocations: 20 kB / 451 MB, free: 3.523 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.516e-05/0.3204, allocations: 12 kB / 451 MB, free: 3.512 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007734/0.3211, allocations: 343.8 kB / 451.3 MB, free: 3.176 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005352/0.3265, allocations: 3.195 MB / 454.5 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001171/0.3277, allocations: 372.4 kB / 454.9 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005042/0.3282, allocations: 172.3 kB / 455 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.795e-05/0.3282, allocations: 4 kB / 455 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.616e-05/0.3282, allocations: 38.56 kB / 455.1 MB, free: 15.27 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 3.366e-06/0.3282, allocations: 3.938 kB / 455.1 MB, free: 15.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.002075/0.3303, allocations: 0.6224 MB / 455.7 MB, free: 14.64 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000148/0.3305, allocations: 213.6 kB / 455.9 MB, free: 14.38 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00406/0.3345, allocations: 2.904 MB / 458.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.398e-05/0.3346, allocations: 29.7 kB / 458.8 MB, free: 11.39 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008967/0.3355, allocations: 0.7938 MB / 459.6 MB, free: 10.6 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001027/0.3356, allocations: 71.39 kB / 459.7 MB, free: 10.53 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001523/0.3357, allocations: 73.97 kB / 459.8 MB, free: 10.45 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.3359, allocations: 318 kB / 460.1 MB, free: 10.13 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003854/0.3363, allocations: 120.6 kB / 460.2 MB, free: 10.02 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000515/0.3368, allocations: 299.8 kB / 460.5 MB, free: 9.656 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007918/0.3376, allocations: 350.3 kB / 460.8 MB, free: 9.262 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.359e-06/0.3376, allocations: 0 / 460.8 MB, free: 9.262 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001522/0.3391, allocations: 0.5711 MB / 461.4 MB, free: 8.68 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.883e-05/0.3391, allocations: 8 kB / 461.4 MB, free: 8.672 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.261e-05/0.3392, allocations: 4 kB / 461.4 MB, free: 8.668 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003137/0.3395, allocations: 65 kB / 461.5 MB, free: 8.602 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003086/0.3398, allocations: 75.84 kB / 461.6 MB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001936/0.3417, allocations: 1.609 MB / 463.2 MB, free: 6.805 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000637/0.3423, allocations: 71.73 kB / 463.2 MB, free: 6.734 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.06e-05/0.3424, allocations: 12 kB / 463.2 MB, free: 6.723 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.0008343/0.3432, allocations: 0.5757 MB / 463.8 MB, free: 6.137 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000366/0.3436, allocations: 178.8 kB / 464 MB, free: 5.961 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001377/0.345, allocations: 0.5104 MB / 464.5 MB, free: 5.441 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.345, allocations: 0 / 464.5 MB, free: 5.441 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.853e-06/0.345, allocations: 4 kB / 464.5 MB, free: 5.438 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.345, allocations: 7.922 kB / 464.5 MB, free: 5.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003157/0.3481, allocations: 1.668 MB / 466.2 MB, free: 3.699 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.756e-06/0.3481, allocations: 0 / 466.2 MB, free: 3.699 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002414/0.3484, allocations: 47.97 kB / 466.2 MB, free: 3.652 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001733/0.3485, allocations: 52.8 kB / 466.3 MB, free: 3.598 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.422e-05/0.3486, allocations: 4 kB / 466.3 MB, free: 3.594 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00166/0.3502, allocations: 1.562 MB / 467.9 MB, free: 1.914 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.3502, allocations: 7.969 kB / 467.9 MB, free: 1.906 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001651/0.3519, allocations: 0.7227 MB / 468.6 MB, free: 1.16 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008056/0.3527, allocations: 310.8 kB / 468.9 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002076/0.3529, allocations: 8 kB / 468.9 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005402/0.3534, allocations: 39.95 kB / 468.9 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000109/0.3535, allocations: 35.94 kB / 469 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.95e-05/0.3536, allocations: 4 kB / 469 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003694/0.3573, allocations: 2.079 MB / 471.1 MB, free: 14.66 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3573, allocations: 4 kB / 471.1 MB, free: 14.66 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009966/0.3583, allocations: 203.7 kB / 471.3 MB, free: 14.46 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.003488/0.3617, allocations: 1.51 MB / 472.8 MB, free: 13.04 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001206/0.3629, allocations: 422.6 kB / 473.2 MB, free: 12.61 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.092e-06/0.363, allocations: 0 / 473.2 MB, free: 12.61 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005846/0.3635, allocations: 275 kB / 473.4 MB, free: 12.33 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001664/0.3652, allocations: 223.2 kB / 473.7 MB, free: 12.11 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03506/0.4003, allocations: 17.54 MB / 491.2 MB, free: 10.25 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001451/0.4017, allocations: 1.354 MB / 492.6 MB, free: 8.859 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007541/0.4025, allocations: 246.8 kB / 492.8 MB, free: 8.613 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009714/0.4034, allocations: 0.5813 MB / 493.4 MB, free: 8.031 MB / 398.1 MB Notification: Performance of SimCode: time 2.154e-06/0.4034, allocations: 0 / 493.4 MB, free: 8.031 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08557/0.489, allocations: 33.17 MB / 0.5142 GB, free: 6.988 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.57/16.06, allocations: 6.406 kB / 0.5142 GB, free: 6.984 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.866307616000995]