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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001273/0.001273, allocations: 117.7 kB / 17.33 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001309/0.001309, allocations: 201.8 kB / 18.26 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.474/1.474, allocations: 227.4 MB / 246.4 MB, free: 10.81 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 59.73 kB / 306.5 MB, free: 0.875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1019, allocations: 50.53 MB / 357.1 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.006465/0.1084, allocations: 5.531 MB / 362.6 MB, free: 8.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003409/0.1119, allocations: 1.839 MB / 364.5 MB, free: 6.926 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003759/0.1123, allocations: 11.94 kB / 364.5 MB, free: 6.914 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001031/0.1133, allocations: 0.5061 MB / 365 MB, free: 6.406 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007138/0.1141, allocations: 346.5 kB / 365.3 MB, free: 6.066 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007445/0.1148, allocations: 343.1 kB / 365.6 MB, free: 5.734 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009228/0.1158, allocations: 0.8925 MB / 366.5 MB, free: 4.84 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004747/0.1162, allocations: 332.8 kB / 366.9 MB, free: 4.512 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004208/0.1167, allocations: 374.7 kB / 367.2 MB, free: 4.145 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004479/0.1171, allocations: 442.4 kB / 367.7 MB, free: 3.711 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.211e-05/0.1172, allocations: 80 kB / 367.7 MB, free: 3.633 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002006/0.1174, allocations: 120 kB / 367.9 MB, free: 3.516 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004065/0.1179, allocations: 0.596 MB / 368.5 MB, free: 2.918 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005631/0.1184, allocations: 0.7415 MB / 369.2 MB, free: 2.172 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001599/0.12, allocations: 2.095 MB / 371.3 MB, free: 72 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1201, allocations: 0 / 371.3 MB, free: 72 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1201, allocations: 0 / 371.3 MB, free: 72 kB / 302.1 MB Notification: Performance of Transformations before backend: time 1.871e-05/0.1201, allocations: 0 / 371.3 MB, free: 72 kB / 302.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.1758/0.2959, allocations: 2.086 MB / 373.4 MB, free: 19.46 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.518e-05/0.2959, allocations: 8.781 kB / 373.4 MB, free: 19.46 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001125/0.2961, allocations: 90.45 kB / 373.5 MB, free: 19.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003213/0.2964, allocations: 188.8 kB / 373.7 MB, free: 19.33 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002214/0.2986, allocations: 1.487 MB / 375.1 MB, free: 18.69 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002222/0.2988, allocations: 91.11 kB / 375.2 MB, free: 18.64 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.635e-05/0.2989, allocations: 49.55 kB / 375.3 MB, free: 18.62 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001197/0.3001, allocations: 0.5895 MB / 375.9 MB, free: 18.3 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.602e-05/0.3002, allocations: 0 / 375.9 MB, free: 18.3 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.699e-05/0.3002, allocations: 22.75 kB / 375.9 MB, free: 18.29 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.312e-05/0.3002, allocations: 13.59 kB / 375.9 MB, free: 18.29 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006732/0.3009, allocations: 349.4 kB / 376.2 MB, free: 18.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0045/0.3054, allocations: 3.25 MB / 379.5 MB, free: 16.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0011/0.3066, allocations: 387.7 kB / 379.9 MB, free: 16.21 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004723/0.307, allocations: 189.7 kB / 380.1 MB, free: 16.14 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.41e-05/0.3071, allocations: 2.703 kB / 380.1 MB, free: 16.14 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.403e-05/0.3071, allocations: 37.95 kB / 380.1 MB, free: 16.1 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.883e-06/0.3071, allocations: 0 / 380.1 MB, free: 16.1 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001856/0.309, allocations: 0.6911 MB / 380.8 MB, free: 15.78 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.131e-05/0.3091, allocations: 213.7 kB / 381 MB, free: 15.52 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004269/0.3133, allocations: 2.905 MB / 383.9 MB, free: 14.58 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.432e-05/0.3134, allocations: 33.98 kB / 383.9 MB, free: 14.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005862/0.314, allocations: 0.7833 MB / 384.7 MB, free: 13.94 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.763e-05/0.3141, allocations: 79.39 kB / 384.8 MB, free: 13.88 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000115/0.3142, allocations: 64.97 kB / 384.9 MB, free: 13.84 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.065e-05/0.3143, allocations: 321.3 kB / 385.2 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003623/0.3146, allocations: 122.4 kB / 385.3 MB, free: 13.49 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004097/0.3151, allocations: 302.1 kB / 385.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000628/0.3157, allocations: 366.6 kB / 385.9 MB, free: 13 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.459e-06/0.3157, allocations: 1.281 kB / 385.9 MB, free: 13 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001264/0.317, allocations: 0.5562 MB / 386.5 MB, free: 12.75 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.222e-05/0.317, allocations: 14.06 kB / 386.5 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.317, allocations: 3.438 kB / 386.5 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002809/0.3173, allocations: 60.95 kB / 386.6 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002954/0.3176, allocations: 76.66 kB / 386.7 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001309/0.3189, allocations: 1.721 MB / 388.4 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005979/0.3196, allocations: 62.31 kB / 388.4 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.799e-05/0.3196, allocations: 17.45 kB / 388.5 MB, free: 11.05 MB / 302.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.0007825/0.3204, allocations: 0.5783 MB / 389 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002362/0.3206, allocations: 162.2 kB / 389.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001224/0.3219, allocations: 0.5144 MB / 389.7 MB, free: 10.51 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.096e-06/0.3219, allocations: 3.969 kB / 389.7 MB, free: 10.51 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.774e-06/0.3219, allocations: 1.594 kB / 389.7 MB, free: 10.51 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.3219, allocations: 0.5625 kB / 389.7 MB, free: 10.51 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003069/0.325, allocations: 1.699 MB / 391.4 MB, free: 9.598 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.325, allocations: 0 / 391.4 MB, free: 9.598 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002256/0.3252, allocations: 49.53 kB / 391.5 MB, free: 9.582 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001674/0.3254, allocations: 44.86 kB / 391.5 MB, free: 9.559 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.215e-05/0.3254, allocations: 9.656 kB / 391.5 MB, free: 9.551 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001099/0.3265, allocations: 1.664 MB / 393.2 MB, free: 7.895 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.3266, allocations: 5 kB / 393.2 MB, free: 7.891 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001452/0.328, allocations: 0.7085 MB / 393.9 MB, free: 7.457 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005258/0.3285, allocations: 384.1 kB / 394.3 MB, free: 7.188 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001351/0.3287, allocations: 12.98 kB / 394.3 MB, free: 7.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004123/0.3291, allocations: 46.08 kB / 394.3 MB, free: 7.16 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.622e-05/0.3292, allocations: 25.72 kB / 394.3 MB, free: 7.148 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.803e-05/0.3292, allocations: 8.125 kB / 394.4 MB, free: 7.145 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002652/0.3319, allocations: 2.077 MB / 396.4 MB, free: 6.164 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.072e-06/0.3319, allocations: 0 / 396.4 MB, free: 6.164 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007738/0.3327, allocations: 206.7 kB / 396.6 MB, free: 6.125 MB / 302.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.002162/0.3349, allocations: 1.514 MB / 398.1 MB, free: 5.086 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001093/0.336, allocations: 443.2 kB / 398.6 MB, free: 4.828 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.369e-06/0.336, allocations: 1.75 kB / 398.6 MB, free: 4.828 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004652/0.3365, allocations: 275.5 kB / 398.9 MB, free: 4.586 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001186/0.3376, allocations: 228 kB / 399.1 MB, free: 4.363 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03426/0.3719, allocations: 20.39 MB / 419.5 MB, free: 14.77 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001068/0.373, allocations: 1.355 MB / 420.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006286/0.3737, allocations: 245.7 kB / 421.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006971/0.3744, allocations: 0.5774 MB / 421.6 MB, free: 12.56 MB / 334.1 MB Notification: Performance of SimCode: time 1.102e-06/0.3744, allocations: 0 / 421.6 MB, free: 12.56 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06336/0.4378, allocations: 31.76 MB / 453.4 MB, free: 13.04 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002323/0.4381, allocations: 274.7 kB / 453.7 MB, free: 12.68 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.556/2.994, allocations: 0 / 453.7 MB, free: 12.68 MB / 366.1 MB (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 --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)