Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_StackRC,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_StackRC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_StackRC,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_StackRC",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001394/0.001394, allocations: 195.4 kB / 8.538 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.16/1.16, allocations: 225.5 MB / 234.4 MB, free: 15.03 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009416/0.0009415, allocations: 99.2 kB / 286.4 MB, free: 12.67 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09843/0.0994, allocations: 56.88 MB / 343.2 MB, free: 3.762 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.21/0.3094, allocations: 51.46 MB / 394.7 MB, free: 33.26 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1012/0.4106, allocations: 94.46 MB / 489.2 MB, free: 2.641 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002668/0.411, allocations: 83.88 kB / 489.2 MB, free: 2.562 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1013 * Number of variables: 1013 Notification: Performance of Generate backend data structure: time 0.8724/1.283, allocations: 285.7 MB / 0.7568 GB, free: 37.91 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/1.283, allocations: 12 kB / 0.7568 GB, free: 37.9 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005644/1.289, allocations: 1.743 MB / 0.7585 GB, free: 36.13 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04556/1.335, allocations: 25.6 MB / 0.7835 GB, free: 10.74 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002565/1.335, allocations: 257.6 kB / 0.7837 GB, free: 10.48 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005965/1.336, allocations: 239.9 kB / 0.784 GB, free: 10.25 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006937/1.343, allocations: 5.689 MB / 0.7895 GB, free: 4.559 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008314/1.351, allocations: 6.898 MB / 0.7963 GB, free: 13.4 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.948e-05/1.351, allocations: 11.88 kB / 0.7963 GB, free: 13.39 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000451/1.351, allocations: 12 kB / 0.7963 GB, free: 13.38 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.007e-05/1.351, allocations: 96 kB / 0.7964 GB, free: 13.29 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3092/1.661, allocations: 33.18 MB / 0.8288 GB, free: 106.5 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003606/1.664, allocations: 2.889 MB / 0.8316 GB, free: 106.5 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00415/1.668, allocations: 3.484 MB / 0.835 GB, free: 106.5 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001198/1.669, allocations: 36.64 kB / 0.835 GB, free: 106.5 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.763e-05/1.669, allocations: 81.97 kB / 0.8351 GB, free: 106.4 MB / 458.8 MB Notification: Performance of pre-optimization done (n=231): time 4.198e-06/1.669, allocations: 0 / 0.8351 GB, free: 106.4 MB / 458.8 MB Notification: Performance of matching and sorting (n=231): time 0.008322/1.677, allocations: 5.159 MB / 0.8402 GB, free: 106.3 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002323/1.677, allocations: 1.298 MB / 0.8414 GB, free: 104.8 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04849/1.726, allocations: 26.76 MB / 0.8676 GB, free: 103.9 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006917/1.727, allocations: 31.42 kB / 0.8676 GB, free: 103.9 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00518/1.732, allocations: 3.29 MB / 0.8708 GB, free: 103.2 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001935/1.734, allocations: 0.7795 MB / 0.8716 GB, free: 102.8 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003002/1.734, allocations: 3.844 kB / 0.8716 GB, free: 102.8 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.000205/1.734, allocations: 429.8 kB / 0.872 GB, free: 102.5 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003062/1.737, allocations: 2.251 MB / 0.8742 GB, free: 102.5 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003168/1.74, allocations: 3.261 MB / 0.8774 GB, free: 101.6 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002841/1.743, allocations: 2.655 MB / 0.88 GB, free: 101.5 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.339e-05/1.743, allocations: 3.625 kB / 0.88 GB, free: 101.5 MB / 458.8 MB Notification: Performance of matching and sorting (n=348) (initialization): time 0.01256/1.756, allocations: 6.758 MB / 0.8866 GB, free: 100.6 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.456e-05/1.756, allocations: 11.59 kB / 0.8866 GB, free: 100.5 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.494e-05/1.756, allocations: 14.94 kB / 0.8866 GB, free: 100.5 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001201/1.757, allocations: 0.5312 MB / 0.8871 GB, free: 100.5 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00346/1.761, allocations: 0.8953 MB / 0.888 GB, free: 100.5 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006343/1.767, allocations: 5.502 MB / 0.8933 GB, free: 99.11 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006584/1.774, allocations: 0.611 MB / 0.8939 GB, free: 99.05 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006023/1.774, allocations: 100.7 kB / 0.894 GB, free: 99.02 MB / 458.8 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: stack.cell[1,1].n.v:VARIABLE(flow=false unit = "V" ) "Potential at the pin" type: Real [3,2] stack.cell[3,1].v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real [3,2] cccvCharger.v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * Number of states: 0 () * Number of discrete variables: 14 (cccvCharger.CV,energy.local_reset,stack.cell[3,2].limIntegrator.local_reset,stack.cell[3,2].cell.limIntegrator.local_reset,stack.cell[3,1].limIntegrator.local_reset,stack.cell[3,1].cell.limIntegrator.local_reset,stack.cell[2,2].limIntegrator.local_reset,stack.cell[2,2].cell.limIntegrator.local_reset,stack.cell[2,1].limIntegrator.local_reset,stack.cell[2,1].cell.limIntegrator.local_reset,stack.cell[1,2].limIntegrator.local_reset,stack.cell[1,2].cell.limIntegrator.local_reset,stack.cell[1,1].limIntegrator.local_reset,stack.cell[1,1].cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (308): * Single equations (assignments): 307 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 38} Notification: Performance of prepare postOptimizeDAE: time 0.0007722/1.775, allocations: 211.4 kB / 0.8942 GB, free: 98.91 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003766/1.779, allocations: 1.513 MB / 0.8957 GB, free: 98.07 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01475/1.794, allocations: 6.225 MB / 0.9018 GB, free: 96.3 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.731e-05/1.794, allocations: 23.53 kB / 0.9018 GB, free: 96.3 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.748e-06/1.794, allocations: 0 / 0.9018 GB, free: 96.3 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.779e-05/1.794, allocations: 10.92 kB / 0.9018 GB, free: 96.3 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04173/1.835, allocations: 18.2 MB / 0.9196 GB, free: 89.87 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.069e-05/1.835, allocations: 4 kB / 0.9196 GB, free: 89.86 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003071/1.839, allocations: 0.74 MB / 0.9203 GB, free: 89.32 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001008/1.84, allocations: 438.5 kB / 0.9207 GB, free: 88.97 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003178/1.84, allocations: 50.64 kB / 0.9208 GB, free: 88.93 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004732/1.845, allocations: 4.75 MB / 0.9254 GB, free: 84.65 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/1.845, allocations: 1.969 kB / 0.9254 GB, free: 84.65 MB / 458.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01066/1.855, allocations: 8.499 MB / 0.9337 GB, free: 76.97 MB / 458.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01416/1.87, allocations: 12.07 MB / 0.9455 GB, free: 66.11 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01069/1.88, allocations: 7.42 MB / 0.9528 GB, free: 58.49 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003747/1.884, allocations: 49.22 kB / 0.9528 GB, free: 58.45 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007492/1.892, allocations: 0.6916 MB / 0.9535 GB, free: 58.01 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001216/1.893, allocations: 393.8 kB / 0.9539 GB, free: 57.78 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005208/1.893, allocations: 63.8 kB / 0.9539 GB, free: 57.72 MB / 458.8 MB Notification: Performance of sort global known variables: time 0.03984/1.933, allocations: 20.61 MB / 0.9741 GB, free: 40.08 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.008419/1.942, allocations: 1.859 MB / 0.9759 GB, free: 38.32 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 25 (stack.cell[1,1].cell.limIntegrator.y,stack.cell[1,1].cell.capacitor[1].v,stack.cell[1,1].cell.capacitor[2].v,stack.cell[1,1].limIntegrator.y,stack.cell[1,2].cell.limIntegrator.y,stack.cell[1,2].cell.capacitor[1].v,stack.cell[1,2].cell.capacitor[2].v,stack.cell[1,2].limIntegrator.y,stack.cell[2,1].cell.limIntegrator.y,stack.cell[2,1].cell.capacitor[1].v,stack.cell[2,1].cell.capacitor[2].v,stack.cell[2,1].limIntegrator.y,stack.cell[2,2].cell.limIntegrator.y,stack.cell[2,2].cell.capacitor[1].v,stack.cell[2,2].cell.capacitor[2].v,stack.cell[2,2].limIntegrator.y,stack.cell[3,1].cell.limIntegrator.y,stack.cell[3,1].cell.capacitor[1].v,stack.cell[3,1].cell.capacitor[2].v,stack.cell[3,1].limIntegrator.y,stack.cell[3,2].cell.limIntegrator.y,stack.cell[3,2].cell.capacitor[1].v,stack.cell[3,2].cell.capacitor[2].v,stack.cell[3,2].limIntegrator.y,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (201): * Single equations (assignments): 200 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.001465/1.943, allocations: 0.6347 MB / 0.9765 GB, free: 37.94 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.006449/1.95, allocations: 4.855 MB / 0.9812 GB, free: 33.73 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 9.969e-06/1.95, allocations: 9.781 kB / 0.9812 GB, free: 33.72 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003189/1.953, allocations: 2.585 MB / 0.9838 GB, free: 31.48 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01127/1.964, allocations: 2.072 MB / 0.9858 GB, free: 29.79 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2281/2.192, allocations: 38.27 MB / 1.023 GB, free: 96.57 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02397/2.216, allocations: 12.72 MB / 1.036 GB, free: 95.58 MB / 458.8 MB Notification: Performance of SimCode: time 1.313e-06/2.216, allocations: 0 / 1.036 GB, free: 95.58 MB / 458.8 MB (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_StackRC_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_StackRC.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_res.mat does not exist to compare? outputFormat=mat