Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.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.CCCVcharging,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCVcharging",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.001026/0.001026, allocations: 199.2 kB / 8.541 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.242/1.242, allocations: 225.5 MB / 234.4 MB, free: 3.328 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008169/0.0008169, allocations: 90.61 kB / 286.3 MB, free: 5.227 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1065/0.1074, allocations: 56.9 MB / 343.2 MB, free: 8.625 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09477/0.2021, allocations: 51.48 MB / 394.7 MB, free: 5.086 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2551/0.4573, allocations: 88.07 MB / 482.8 MB, free: 5.113 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000205/0.4576, allocations: 73.11 kB / 482.9 MB, free: 5.082 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.06881/0.5264, allocations: 30.89 MB / 0.5017 GB, free: 10.82 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.297e-05/0.5264, allocations: 11.98 kB / 0.5017 GB, free: 10.8 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002264/0.5267, allocations: 162 kB / 0.5019 GB, free: 10.64 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001801/0.5285, allocations: 1.171 MB / 0.503 GB, free: 9.625 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.157e-05/0.5286, allocations: 46.7 kB / 0.5031 GB, free: 9.57 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.372e-05/0.5286, allocations: 31.91 kB / 0.5031 GB, free: 9.539 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005636/0.5292, allocations: 366.2 kB / 0.5034 GB, free: 9.316 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008215/0.53, allocations: 0.5471 MB / 0.504 GB, free: 8.859 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.5301, allocations: 0 / 0.504 GB, free: 8.859 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.512e-05/0.5301, allocations: 0 / 0.504 GB, free: 8.859 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.268e-05/0.5301, allocations: 12 kB / 0.504 GB, free: 8.848 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003933/0.5341, allocations: 2.832 MB / 0.5067 GB, free: 6.203 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003353/0.5344, allocations: 201.8 kB / 0.5069 GB, free: 6 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004704/0.5349, allocations: 293 kB / 0.5072 GB, free: 5.715 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.347e-05/0.5349, allocations: 4 kB / 0.5072 GB, free: 5.711 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.422e-05/0.535, allocations: 42.56 kB / 0.5073 GB, free: 5.66 MB / 378.7 MB Notification: Performance of pre-optimization done (n=30): time 1.493e-06/0.535, allocations: 0 / 0.5073 GB, free: 5.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=30): time 0.0009159/0.5359, allocations: 459.2 kB / 0.5077 GB, free: 5.203 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001008/0.536, allocations: 269 kB / 0.508 GB, free: 4.879 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002352/0.5384, allocations: 1.929 MB / 0.5098 GB, free: 2.938 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.437e-05/0.5384, allocations: 25.7 kB / 0.5099 GB, free: 2.906 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002118/0.5386, allocations: 362 kB / 0.5102 GB, free: 2.547 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.983e-05/0.5387, allocations: 102.5 kB / 0.5103 GB, free: 2.445 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.609e-05/0.5387, allocations: 0 / 0.5103 GB, free: 2.445 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.01e-05/0.5388, allocations: 318 kB / 0.5106 GB, free: 2.129 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001927/0.539, allocations: 136.7 kB / 0.5107 GB, free: 1.992 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002867/0.5393, allocations: 260.5 kB / 0.511 GB, free: 1.684 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002368/0.5396, allocations: 159.8 kB / 0.5111 GB, free: 1.527 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.5396, allocations: 4 kB / 0.5111 GB, free: 1.523 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007374/0.5403, allocations: 0.5154 MB / 0.5116 GB, free: 0.9961 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/0.5403, allocations: 7.938 kB / 0.5117 GB, free: 0.9883 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.5404, allocations: 4 kB / 0.5117 GB, free: 0.9844 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002202/0.5406, allocations: 65 kB / 0.5117 GB, free: 0.918 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003889/0.541, allocations: 95.88 kB / 0.5118 GB, free: 0.8242 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001276/0.5423, allocations: 1.485 MB / 0.5133 GB, free: 15.22 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004149/0.5427, allocations: 43.67 kB / 0.5133 GB, free: 15.18 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.15e-05/0.5427, allocations: 20.05 kB / 0.5133 GB, free: 15.16 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: battery.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: 10 * Number of states: 0 () * Number of discrete variables: 3 (cccvCharger.CV,energy.local_reset,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * 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 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001468/0.5429, allocations: 121 kB / 0.5134 GB, free: 15.04 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001664/0.5431, allocations: 130.3 kB / 0.5136 GB, free: 14.91 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009302/0.544, allocations: 0.5014 MB / 0.5141 GB, free: 14.39 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.544, allocations: 4 kB / 0.5141 GB, free: 14.39 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.763e-06/0.544, allocations: 4 kB / 0.5141 GB, free: 14.38 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.544, allocations: 0 / 0.5141 GB, free: 14.38 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00233/0.5464, allocations: 1.6 MB / 0.5156 GB, free: 12.73 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.5464, allocations: 0 / 0.5156 GB, free: 12.73 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003505/0.5467, allocations: 71.89 kB / 0.5157 GB, free: 12.66 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001334/0.5469, allocations: 48.89 kB / 0.5157 GB, free: 12.61 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.511e-05/0.5469, allocations: 11.91 kB / 0.5158 GB, free: 12.59 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001159/0.5481, allocations: 1.45 MB / 0.5172 GB, free: 11.02 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.5481, allocations: 0 / 0.5172 GB, free: 11.02 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001037/0.5492, allocations: 0.7547 MB / 0.5179 GB, free: 10.22 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001365/0.5505, allocations: 1.297 MB / 0.5192 GB, free: 8.883 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005898/0.5511, allocations: 448.3 kB / 0.5196 GB, free: 8.406 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001585/0.5513, allocations: 4 kB / 0.5196 GB, free: 8.402 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004787/0.5518, allocations: 55.95 kB / 0.5197 GB, free: 8.348 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.276e-05/0.5519, allocations: 27.95 kB / 0.5197 GB, free: 8.32 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.722e-05/0.5519, allocations: 12 kB / 0.5197 GB, free: 8.309 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001848/0.5538, allocations: 1.47 MB / 0.5211 GB, free: 6.84 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001285/0.5551, allocations: 215.4 kB / 0.5213 GB, free: 6.629 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (battery.limIntegrator.y,battery.capacitor[1].v,battery.capacitor[2].v,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 25 * 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 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007231/0.5558, allocations: 368 kB / 0.5217 GB, free: 6.336 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0007487/0.5566, allocations: 434.2 kB / 0.5221 GB, free: 5.902 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.5566, allocations: 3.938 kB / 0.5221 GB, free: 5.898 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003739/0.5569, allocations: 262.2 kB / 0.5224 GB, free: 5.633 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007408/0.5577, allocations: 158.6 kB / 0.5225 GB, free: 5.484 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003499/0.5612, allocations: 2.155 MB / 0.5246 GB, free: 3.285 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001203/0.5624, allocations: 1.375 MB / 0.526 GB, free: 1.887 MB / 394.7 MB Notification: Performance of SimCode: time 9.21e-07/0.5624, allocations: 0 / 0.526 GB, free: 1.887 MB / 394.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCVcharging_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCVcharging.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat does not exist to compare? outputFormat=mat