Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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.001392/0.001392, allocations: 114 kB / 20.44 MB, free: 1.469 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.001493/0.001493, allocations: 214.1 kB / 23.74 MB, free: 4.695 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.458/1.458, allocations: 230.5 MB / 257.4 MB, free: 8.023 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_CellRC,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00211/0.00211, allocations: 67.83 kB / 377.8 MB, free: 3.031 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2912/0.2933, allocations: 53.4 MB / 431.2 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.008297/0.3016, allocations: 6.127 MB / 437.3 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004061/0.3057, allocations: 2.329 MB / 439.6 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004702/0.3062, allocations: 27.81 kB / 439.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001352/0.3075, allocations: 0.6224 MB / 440.3 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009076/0.3084, allocations: 453.6 kB / 440.7 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008659/0.3093, allocations: 418.8 kB / 441.1 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00152/0.3108, allocations: 1.313 MB / 442.4 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000521/0.3113, allocations: 310.3 kB / 442.7 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005509/0.3119, allocations: 0.5061 MB / 443.3 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007231/0.3126, allocations: 0.6033 MB / 443.9 MB, free: 9.977 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001537/0.3128, allocations: 116 kB / 444 MB, free: 9.863 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002955/0.3131, allocations: 176 kB / 444.1 MB, free: 9.691 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005418/0.3136, allocations: 0.6661 MB / 444.8 MB, free: 9.023 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008215/0.3144, allocations: 0.8855 MB / 445.7 MB, free: 8.133 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002786/0.3172, allocations: 2.646 MB / 448.3 MB, free: 5.477 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.198e-06/0.3172, allocations: 7.984 kB / 448.3 MB, free: 5.469 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3172, allocations: 0 / 448.3 MB, free: 5.469 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.932e-05/0.3173, allocations: 0 / 448.3 MB, free: 5.469 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.004169/0.3214, allocations: 2.354 MB / 450.7 MB, free: 3.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.3215, allocations: 8.031 kB / 450.7 MB, free: 3.062 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001396/0.3216, allocations: 110.6 kB / 450.8 MB, free: 2.945 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003423/0.322, allocations: 235.4 kB / 451 MB, free: 2.715 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002681/0.3246, allocations: 1.632 MB / 452.7 MB, free: 1.027 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001814/0.3248, allocations: 185.9 kB / 452.9 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.799e-05/0.3249, allocations: 67.94 kB / 452.9 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001482/0.3264, allocations: 0.8337 MB / 453.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.902e-05/0.3264, allocations: 0 / 453.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.464e-05/0.3265, allocations: 28 kB / 453.8 MB, free: 15.83 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.401e-05/0.3265, allocations: 12 kB / 453.8 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001071/0.3276, allocations: 0.5555 MB / 454.4 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006275/0.3338, allocations: 3.93 MB / 458.3 MB, free: 11.22 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001326/0.3352, allocations: 0.5116 MB / 458.8 MB, free: 10.7 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007873/0.336, allocations: 333.1 kB / 459.1 MB, free: 10.37 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.07e-05/0.336, allocations: 8.281 kB / 459.1 MB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.849e-05/0.336, allocations: 46.83 kB / 459.2 MB, free: 10.31 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.635e-06/0.336, allocations: 0 / 459.2 MB, free: 10.31 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002395/0.3384, allocations: 0.8736 MB / 460 MB, free: 9.426 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001564/0.3386, allocations: 269 kB / 460.3 MB, free: 9.102 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004569/0.3432, allocations: 3.156 MB / 463.5 MB, free: 5.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.626e-05/0.3432, allocations: 33.7 kB / 463.5 MB, free: 5.871 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008905/0.3441, allocations: 0.8654 MB / 464.4 MB, free: 5 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001256/0.3442, allocations: 123 kB / 464.5 MB, free: 4.879 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001627/0.3444, allocations: 94.14 kB / 464.6 MB, free: 4.781 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.3446, allocations: 330 kB / 464.9 MB, free: 4.453 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005105/0.3451, allocations: 204.9 kB / 465.1 MB, free: 4.25 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006878/0.3458, allocations: 393.5 kB / 465.5 MB, free: 3.793 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000982/0.3467, allocations: 0.5282 MB / 466 MB, free: 3.215 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.3467, allocations: 0 / 466 MB, free: 3.215 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001645/0.3484, allocations: 0.7776 MB / 466.8 MB, free: 2.426 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.555e-05/0.3484, allocations: 11.98 kB / 466.8 MB, free: 2.414 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.3484, allocations: 8.312 kB / 466.8 MB, free: 2.406 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000301/0.3487, allocations: 68.83 kB / 466.9 MB, free: 2.336 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000454/0.3492, allocations: 111.9 kB / 467 MB, free: 2.227 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001987/0.3512, allocations: 1.703 MB / 468.7 MB, free: 420 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006072/0.3518, allocations: 75.59 kB / 468.8 MB, free: 344 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.354e-05/0.3518, allocations: 16 kB / 468.8 MB, free: 328 kB / 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.0009301/0.3527, allocations: 0.6571 MB / 469.4 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002622/0.353, allocations: 194.7 kB / 469.6 MB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003035/0.3533, allocations: 226.6 kB / 469.8 MB, free: 15.24 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.3533, allocations: 11.92 kB / 469.9 MB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.3533, allocations: 0 / 469.9 MB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.3533, allocations: 0 / 469.9 MB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003729/0.357, allocations: 2.123 MB / 472 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.3571, allocations: 0 / 472 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003907/0.3574, allocations: 83.94 kB / 472.1 MB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001995/0.3576, allocations: 64.81 kB / 472.1 MB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.353e-05/0.3577, allocations: 11.94 kB / 472.1 MB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00168/0.3594, allocations: 1.632 MB / 473.8 MB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3594, allocations: 0 / 473.8 MB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001959/0.3613, allocations: 0.9918 MB / 474.8 MB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008967/0.3622, allocations: 374.5 kB / 475.1 MB, free: 9.75 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001545/0.3624, allocations: 11.98 kB / 475.1 MB, free: 9.738 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005108/0.3629, allocations: 59.95 kB / 475.2 MB, free: 9.68 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001086/0.363, allocations: 39.92 kB / 475.2 MB, free: 9.641 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.858e-05/0.363, allocations: 8 kB / 475.2 MB, free: 9.633 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003212/0.3662, allocations: 2.259 MB / 477.5 MB, free: 7.355 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3662, allocations: 0 / 477.5 MB, free: 7.355 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00087/0.3671, allocations: 251.6 kB / 477.8 MB, free: 7.109 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.00387/0.371, allocations: 1.902 MB / 479.7 MB, free: 5.336 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001348/0.3723, allocations: 0.5966 MB / 480.2 MB, free: 4.727 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.082e-06/0.3723, allocations: 4 kB / 480.3 MB, free: 4.723 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006526/0.373, allocations: 347.2 kB / 480.6 MB, free: 4.371 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001325/0.3743, allocations: 283.7 kB / 480.9 MB, free: 4.09 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03005/0.4043, allocations: 19.75 MB / 0.4889 GB, free: 28 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001351/0.4057, allocations: 1.5 MB / 0.4904 GB, free: 14.5 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007254/0.4064, allocations: 299.2 kB / 0.4906 GB, free: 14.2 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008469/0.4073, allocations: 0.6399 MB / 0.4913 GB, free: 13.56 MB / 414.1 MB Notification: Performance of SimCode: time 6.62e-07/0.4073, allocations: 0 / 0.4913 GB, free: 13.56 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1148/0.5221, allocations: 36.87 MB / 0.5273 GB, free: 8.848 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.18/16.7, allocations: 4.062 kB / 0.5273 GB, free: 8.844 MB / 446.1 MB " [Timeout remaining time 643] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 20.739270772086456]