Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001757/0.001757, allocations: 181.2 kB / 16.39 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.317/1.317, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008559/0.000856, allocations: 99.44 kB / 291.5 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002492/0.0002492, allocations: 4 kB / 351.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2342/0.2345, allocations: 50.4 MB / 401.6 MB, free: 32.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1057/0.3403, allocations: 87.66 MB / 489.2 MB, free: 8.773 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002173/0.3405, allocations: 81.47 kB / 489.3 MB, free: 8.695 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2548/0.5953, allocations: 29.5 MB / 0.5067 GB, free: 93.41 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.5954, allocations: 4.281 kB / 0.5067 GB, free: 93.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.00014/0.5955, allocations: 28.59 kB / 0.5067 GB, free: 93.41 MB / 378.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.002694/0.5982, allocations: 1.65 MB / 0.5083 GB, free: 92.52 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.5983, allocations: 7.844 kB / 0.5083 GB, free: 92.52 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001177/0.5984, allocations: 91.66 kB / 0.5084 GB, free: 92.48 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002037/0.5986, allocations: 161.1 kB / 0.5085 GB, free: 92.4 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001691/0.6003, allocations: 1.169 MB / 0.5097 GB, free: 92.04 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.178e-05/0.6004, allocations: 63.98 kB / 0.5097 GB, free: 92 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.7e-05/0.6005, allocations: 50.94 kB / 0.5098 GB, free: 92 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009326/0.6014, allocations: 0.6556 MB / 0.5104 GB, free: 91.85 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.407e-05/0.6014, allocations: 0 / 0.5104 GB, free: 91.85 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.1e-05/0.6015, allocations: 22.53 kB / 0.5105 GB, free: 91.85 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.6015, allocations: 11.66 kB / 0.5105 GB, free: 91.85 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006329/0.6022, allocations: 423.8 kB / 0.5109 GB, free: 91.84 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003941/0.6061, allocations: 2.915 MB / 0.5137 GB, free: 91 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008476/0.607, allocations: 451.7 kB / 0.5142 GB, free: 90.91 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.561e-05/0.607, allocations: 3.938 kB / 0.5142 GB, free: 90.91 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.6e-05/0.6071, allocations: 42.44 kB / 0.5142 GB, free: 90.86 MB / 378.7 MB Notification: Performance of pre-optimization done (n=30): time 2.044e-06/0.6071, allocations: 3.156 kB / 0.5142 GB, free: 90.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=30): time 0.001768/0.6088, allocations: 0.8487 MB / 0.515 GB, free: 90.51 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.018e-05/0.6089, allocations: 269.4 kB / 0.5153 GB, free: 90.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002131/0.6111, allocations: 2.031 MB / 0.5173 GB, free: 89.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.358e-05/0.6111, allocations: 33.52 kB / 0.5173 GB, free: 89.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003748/0.6115, allocations: 0.6344 MB / 0.5179 GB, free: 89.04 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.195e-05/0.6116, allocations: 110.3 kB / 0.518 GB, free: 88.96 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.619e-05/0.6116, allocations: 4 kB / 0.518 GB, free: 88.96 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.31e-05/0.6116, allocations: 322.2 kB / 0.5183 GB, free: 88.64 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002831/0.6119, allocations: 172.2 kB / 0.5185 GB, free: 88.59 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003285/0.6123, allocations: 300 kB / 0.5188 GB, free: 88.38 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003166/0.6126, allocations: 211.2 kB / 0.519 GB, free: 88.31 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.6126, allocations: 0 / 0.519 GB, free: 88.31 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009485/0.6136, allocations: 0.646 MB / 0.5196 GB, free: 88.04 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.6136, allocations: 6.875 kB / 0.5196 GB, free: 88.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.6136, allocations: 3.219 kB / 0.5196 GB, free: 88.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003407/0.6139, allocations: 91.3 kB / 0.5197 GB, free: 88.01 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003426/0.6143, allocations: 84.47 kB / 0.5198 GB, free: 88.01 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001661/0.616, allocations: 1.88 MB / 0.5216 GB, free: 86.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004558/0.6164, allocations: 54.03 kB / 0.5217 GB, free: 86.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.985e-05/0.6165, allocations: 16.97 kB / 0.5217 GB, free: 86.37 MB / 378.7 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * 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 8} Notification: Performance of prepare postOptimizeDAE: time 0.0006564/0.6171, allocations: 489.8 kB / 0.5222 GB, free: 86.14 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001614/0.6173, allocations: 140.2 kB / 0.5223 GB, free: 86.07 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001089/0.6184, allocations: 0.6168 MB / 0.5229 GB, free: 85.83 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.6184, allocations: 3.406 kB / 0.5229 GB, free: 85.83 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.563e-06/0.6184, allocations: 0 / 0.5229 GB, free: 85.83 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.6184, allocations: 3.781 kB / 0.5229 GB, free: 85.83 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008788/0.6193, allocations: 0.9747 MB / 0.5239 GB, free: 85.37 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.6193, allocations: 0 / 0.5239 GB, free: 85.37 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003077/0.6196, allocations: 63.78 kB / 0.5239 GB, free: 85.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002453/0.6199, allocations: 93.97 kB / 0.524 GB, free: 85.34 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.395e-05/0.6199, allocations: 4 kB / 0.524 GB, free: 85.33 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001444/0.6214, allocations: 1.86 MB / 0.5258 GB, free: 83.71 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.6214, allocations: 7.422 kB / 0.5258 GB, free: 83.7 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001272/0.6227, allocations: 0.8657 MB / 0.5267 GB, free: 83.28 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006451/0.6233, allocations: 454.5 kB / 0.5271 GB, free: 82.91 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001129/0.6235, allocations: 11.56 kB / 0.5271 GB, free: 82.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004379/0.6239, allocations: 62.69 kB / 0.5272 GB, free: 82.85 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.993e-05/0.624, allocations: 22.83 kB / 0.5272 GB, free: 82.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.951e-05/0.624, allocations: 8 kB / 0.5272 GB, free: 82.83 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00159/0.6256, allocations: 1.579 MB / 0.5288 GB, free: 81.49 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6256, allocations: 0 / 0.5288 GB, free: 81.49 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007697/0.6264, allocations: 255.5 kB / 0.529 GB, free: 81.24 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 21 * 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 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.002308/0.6287, allocations: 1.746 MB / 0.5307 GB, free: 79.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009694/0.6297, allocations: 0.5381 MB / 0.5312 GB, free: 79.26 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.6297, allocations: 320 / 0.5312 GB, free: 79.26 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000464/0.6302, allocations: 338.5 kB / 0.5316 GB, free: 78.95 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007404/0.6309, allocations: 189.2 kB / 0.5317 GB, free: 78.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01228/0.6432, allocations: 10.99 MB / 0.5425 GB, free: 68.39 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006368/0.6439, allocations: 1.291 MB / 0.5437 GB, free: 67.08 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005514/0.6445, allocations: 235 kB / 0.544 GB, free: 66.85 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000475/0.6449, allocations: 479.3 kB / 0.5444 GB, free: 66.38 MB / 378.7 MB Notification: Performance of SimCode: time 7.61e-07/0.645, allocations: 0 / 0.5444 GB, free: 66.38 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0438/0.6888, allocations: 28.19 MB / 0.5719 GB, free: 38.57 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000162/0.689, allocations: 253.4 kB / 0.5722 GB, free: 38.23 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.66/3.349, allocations: 0 / 0.5722 GB, free: 38.23 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat does not exist to compare? outputFormat=mat