Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002054/0.002054, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.133/2.133, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001135/0.001135, allocations: 90.59 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.096e-05/3.114e-05, allocations: 4 kB / 314.9 MB, free: 9.051 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3411/0.3412, allocations: 47.56 MB / 362.4 MB, free: 45.84 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1264/0.4677, allocations: 77.3 MB / 439.7 MB, free: 8.984 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002747/0.468, allocations: 69.66 kB / 439.8 MB, free: 8.918 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01776/0.4858, allocations: 3.924 MB / 443.7 MB, free: 5.008 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.4858, allocations: 0 / 443.7 MB, free: 5.008 MB / 331.1 MB Notification: Performance of Transformations before backend: time 1.964e-05/0.4859, allocations: 4 kB / 443.7 MB, free: 5.004 MB / 331.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0009581/0.4868, allocations: 493.2 kB / 444.2 MB, free: 4.48 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.657e-05/0.4869, allocations: 13.06 kB / 444.2 MB, free: 4.469 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.687e-05/0.487, allocations: 27.72 kB / 444.3 MB, free: 4.441 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000373/0.4874, allocations: 224.4 kB / 444.5 MB, free: 4.18 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.319e-05/0.4874, allocations: 13.16 kB / 444.5 MB, free: 4.168 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.272e-05/0.4875, allocations: 16.75 kB / 444.5 MB, free: 4.152 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004153/0.4879, allocations: 124.9 kB / 444.6 MB, free: 4.031 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004217/0.4884, allocations: 150.4 kB / 444.8 MB, free: 3.875 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.688e-05/0.4884, allocations: 0 / 444.8 MB, free: 3.875 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.246e-05/0.4884, allocations: 0 / 444.8 MB, free: 3.875 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.306e-05/0.4885, allocations: 4 kB / 444.8 MB, free: 3.871 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001997/0.4905, allocations: 0.8188 MB / 445.6 MB, free: 2.977 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003881/0.4909, allocations: 137.5 kB / 445.7 MB, free: 2.836 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000249/0.4912, allocations: 84.94 kB / 445.8 MB, free: 2.75 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.563e-05/0.4912, allocations: 8 kB / 445.8 MB, free: 2.742 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.287e-05/0.4913, allocations: 36.44 kB / 445.9 MB, free: 2.699 MB / 331.1 MB Notification: Performance of pre-optimization done (n=17): time 2.484e-06/0.4913, allocations: 3.938 kB / 445.9 MB, free: 2.695 MB / 331.1 MB Notification: Performance of matching and sorting (n=17): time 0.0008858/0.4922, allocations: 189.2 kB / 446 MB, free: 2.504 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.774e-05/0.4922, allocations: 55.41 kB / 446.1 MB, free: 2.438 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002036/0.4924, allocations: 158 kB / 446.2 MB, free: 2.277 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 2.799e-05/0.4925, allocations: 25.7 kB / 446.3 MB, free: 2.246 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001278/0.4926, allocations: 210.4 kB / 446.5 MB, free: 2.039 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.448e-05/0.4927, allocations: 59.77 kB / 446.5 MB, free: 1.98 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.245e-05/0.4927, allocations: 0 / 446.5 MB, free: 1.98 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.4929, allocations: 322.8 kB / 446.9 MB, free: 1.656 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001236/0.493, allocations: 38.5 kB / 446.9 MB, free: 1.621 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001475/0.4931, allocations: 62.22 kB / 447 MB, free: 1.555 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003387/0.4935, allocations: 71.91 kB / 447 MB, free: 1.484 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.4935, allocations: 0 / 447 MB, free: 1.484 MB / 331.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0007014/0.4942, allocations: 192.5 kB / 447.2 MB, free: 1.289 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.427e-05/0.4943, allocations: 8 kB / 447.2 MB, free: 1.281 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.4943, allocations: 0 / 447.2 MB, free: 1.281 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008538/0.4951, allocations: 102.6 kB / 447.3 MB, free: 1.18 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002717/0.4954, allocations: 35.97 kB / 447.4 MB, free: 1.145 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008192/0.4963, allocations: 0.6342 MB / 448 MB, free: 496 kB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002143/0.4965, allocations: 11.84 kB / 448 MB, free: 484 kB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.255e-05/0.4965, allocations: 4 kB / 448 MB, free: 480 kB / 331.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 13 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001148/0.4967, allocations: 103.4 kB / 448.1 MB, free: 372 kB / 331.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007745/0.4975, allocations: 210.1 kB / 448.3 MB, free: 152 kB / 331.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.751e-05/0.4975, allocations: 15.81 kB / 448.3 MB, free: 136 kB / 331.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007153/0.4983, allocations: 204.3 kB / 448.5 MB, free: 15.93 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.105e-06/0.4983, allocations: 4 kB / 448.5 MB, free: 15.93 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.932e-06/0.4983, allocations: 0 / 448.5 MB, free: 15.93 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/0.4983, allocations: 3.984 kB / 448.5 MB, free: 15.92 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001323/0.4996, allocations: 0.5403 MB / 449.1 MB, free: 15.33 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.4997, allocations: 3.984 kB / 449.1 MB, free: 15.33 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002831/0.5, allocations: 23.98 kB / 449.1 MB, free: 15.3 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000758/0.5007, allocations: 115.1 kB / 449.2 MB, free: 15.19 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.01e-05/0.5008, allocations: 0 / 449.2 MB, free: 15.19 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008363/0.5016, allocations: 0.6395 MB / 449.9 MB, free: 14.53 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.188e-06/0.5017, allocations: 4.031 kB / 449.9 MB, free: 14.52 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000975/0.5027, allocations: 384.7 kB / 450.2 MB, free: 14.12 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.975e-05/0.5028, allocations: 92.89 kB / 450.3 MB, free: 14.01 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.284e-05/0.5028, allocations: 4 kB / 450.3 MB, free: 14.01 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002593/0.5031, allocations: 12.05 kB / 450.3 MB, free: 14 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.729e-05/0.5032, allocations: 15.98 kB / 450.4 MB, free: 13.98 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.305e-05/0.5032, allocations: 4 kB / 450.4 MB, free: 13.98 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.000135/0.5033, allocations: 123.2 kB / 450.5 MB, free: 13.86 MB / 347.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5034, allocations: 0 / 450.5 MB, free: 13.86 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0004498/0.5038, allocations: 59.78 kB / 450.5 MB, free: 13.8 MB / 347.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * 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 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.001421/0.5052, allocations: 0.9882 MB / 451.5 MB, free: 12.77 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.0005028/0.5058, allocations: 123.9 kB / 451.6 MB, free: 12.65 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.5058, allocations: 4.125 kB / 451.6 MB, free: 12.64 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002514/0.5061, allocations: 85.25 kB / 451.7 MB, free: 12.56 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003762/0.5065, allocations: 19.56 kB / 451.8 MB, free: 12.55 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001374/0.5078, allocations: 450.3 kB / 452.2 MB, free: 12.07 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003898/0.5083, allocations: 0.7439 MB / 452.9 MB, free: 11.3 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001483/0.5084, allocations: 59.42 kB / 453 MB, free: 11.25 MB / 347.1 MB Notification: Performance of SimCode: time 1.784e-06/0.5085, allocations: 0 / 453 MB, free: 11.25 MB / 347.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.73/3.238, allocations: 3.869 MB / 456.9 MB, free: 7.395 MB / 347.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingRectifier_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingRectifier.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat does not exist to compare? outputFormat=mat