Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_3_2_3_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.001087/0.001087, allocations: 180 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.373/1.373, allocations: 205.4 MB / 223.1 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009531/0.0009534, allocations: 90.14 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002848/0.0002848, allocations: 4 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2552/0.2555, allocations: 47.57 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09787/0.3535, allocations: 78.05 MB / 454 MB, free: 2.59 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002421/0.3538, allocations: 71.91 kB / 454 MB, free: 2.52 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01056/0.3644, allocations: 3.975 MB / 458 MB, free: 14.53 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3644, allocations: 0 / 458 MB, free: 14.53 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.483e-05/0.3644, allocations: 4 kB / 458 MB, free: 14.52 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0006824/0.3651, allocations: 0.4949 MB / 458.5 MB, free: 13.98 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.3652, allocations: 8.031 kB / 458.5 MB, free: 13.97 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.67e-05/0.3652, allocations: 58.55 kB / 458.6 MB, free: 13.9 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.331e-05/0.3653, allocations: 27.72 kB / 458.6 MB, free: 13.88 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000255/0.3655, allocations: 235.4 kB / 458.8 MB, free: 13.6 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.883e-05/0.3656, allocations: 20.42 kB / 458.8 MB, free: 13.58 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.155e-05/0.3656, allocations: 23.91 kB / 458.9 MB, free: 13.56 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003371/0.366, allocations: 187.3 kB / 459 MB, free: 13.37 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.366, allocations: 3.938 kB / 459.1 MB, free: 13.36 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.225e-05/0.366, allocations: 8 kB / 459.1 MB, free: 13.36 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.366, allocations: 4 kB / 459.1 MB, free: 13.35 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002935/0.3663, allocations: 157.6 kB / 459.2 MB, free: 13.2 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001243/0.3676, allocations: 0.8594 MB / 460.1 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003045/0.3679, allocations: 150.6 kB / 460.2 MB, free: 12.1 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.741e-05/0.3679, allocations: 8 kB / 460.2 MB, free: 12.09 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.525e-05/0.368, allocations: 34.5 kB / 460.3 MB, free: 12.05 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.463e-06/0.368, allocations: 0 / 460.3 MB, free: 12.05 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.001203/0.3692, allocations: 423.4 kB / 460.7 MB, free: 11.61 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.464e-05/0.3692, allocations: 55.41 kB / 460.7 MB, free: 11.54 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000129/0.3694, allocations: 155.3 kB / 460.9 MB, free: 11.38 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.25e-05/0.3694, allocations: 29.7 kB / 460.9 MB, free: 11.35 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.496e-05/0.3695, allocations: 144.1 kB / 461.1 MB, free: 11.2 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.448e-05/0.3695, allocations: 67.08 kB / 461.1 MB, free: 11.14 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.807e-06/0.3695, allocations: 8 kB / 461.1 MB, free: 11.13 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.3697, allocations: 322.8 kB / 461.4 MB, free: 10.8 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001104/0.3698, allocations: 56.34 kB / 461.5 MB, free: 10.75 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000119/0.3699, allocations: 74.56 kB / 461.6 MB, free: 10.68 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001255/0.37, allocations: 62.36 kB / 461.6 MB, free: 10.62 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.37, allocations: 4 kB / 461.6 MB, free: 10.61 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004042/0.3705, allocations: 230.2 kB / 461.9 MB, free: 10.38 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.3705, allocations: 4 kB / 461.9 MB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.3705, allocations: 4 kB / 461.9 MB, free: 10.37 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001306/0.3718, allocations: 220.6 kB / 462.1 MB, free: 10.15 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001482/0.372, allocations: 39.97 kB / 462.1 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004577/0.3724, allocations: 0.6147 MB / 462.7 MB, free: 9.473 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001418/0.3726, allocations: 11.97 kB / 462.7 MB, free: 9.461 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.542e-05/0.3726, allocations: 11.94 kB / 462.8 MB, free: 9.449 MB / 346.7 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 () * Number of clocked 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.0001377/0.3728, allocations: 129.8 kB / 462.9 MB, free: 9.312 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.88e-05/0.3728, allocations: 19.8 kB / 462.9 MB, free: 9.293 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004543/0.3733, allocations: 238.7 kB / 463.1 MB, free: 9.051 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.3733, allocations: 3.938 kB / 463.1 MB, free: 9.047 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.271e-06/0.3733, allocations: 3.953 kB / 463.1 MB, free: 9.043 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.239e-06/0.3733, allocations: 4 kB / 463.2 MB, free: 9.039 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000314/0.3736, allocations: 281.4 kB / 463.4 MB, free: 8.715 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.3736, allocations: 0 / 463.4 MB, free: 8.715 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001553/0.3738, allocations: 23.98 kB / 463.4 MB, free: 8.691 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001119/0.3749, allocations: 220.6 kB / 463.7 MB, free: 8.473 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.47e-05/0.3749, allocations: 3.938 kB / 463.7 MB, free: 8.469 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004073/0.3754, allocations: 0.6286 MB / 464.3 MB, free: 7.816 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.3754, allocations: 0 / 464.3 MB, free: 7.816 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005423/0.3759, allocations: 388.5 kB / 464.7 MB, free: 7.418 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.207e-05/0.376, allocations: 92.94 kB / 464.8 MB, free: 7.309 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.821e-05/0.376, allocations: 8 kB / 464.8 MB, free: 7.301 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001531/0.3762, allocations: 19.89 kB / 464.8 MB, free: 7.281 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.991e-05/0.3762, allocations: 11.98 kB / 464.8 MB, free: 7.27 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.132e-05/0.3762, allocations: 8.062 kB / 464.8 MB, free: 7.262 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.568e-05/0.3764, allocations: 131.4 kB / 464.9 MB, free: 7.133 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3764, allocations: 0 / 464.9 MB, free: 7.133 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003063/0.3767, allocations: 63.84 kB / 465 MB, free: 7.07 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked 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.0008503/0.3775, allocations: 0.9364 MB / 465.9 MB, free: 6.105 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003821/0.3779, allocations: 147.9 kB / 466.1 MB, free: 5.961 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3779, allocations: 96 / 466.1 MB, free: 5.961 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001856/0.3781, allocations: 96.83 kB / 466.2 MB, free: 5.867 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002764/0.3784, allocations: 19.98 kB / 466.2 MB, free: 5.848 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002061/0.3805, allocations: 1.504 MB / 467.7 MB, free: 4.289 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002999/0.3808, allocations: 0.7441 MB / 468.4 MB, free: 3.52 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 6.803e-05/0.3809, allocations: 13.55 kB / 468.5 MB, free: 3.508 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.252e-05/0.381, allocations: 55.41 kB / 468.5 MB, free: 3.457 MB / 346.7 MB Notification: Performance of SimCode: time 5.61e-07/0.381, allocations: 0 / 468.5 MB, free: 3.457 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01726/0.3982, allocations: 4.164 MB / 472.7 MB, free: 15.31 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002425/0.3985, allocations: 211.9 kB / 472.9 MB, free: 15.07 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.72/2.119, allocations: 0 / 472.9 MB, free: 15.07 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingRectifier_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingRectifier.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat does not exist to compare? outputFormat=mat