Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.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.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingRectifier",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.001491/0.001491, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.402/1.402, allocations: 221.5 MB / 230.3 MB, free: 7.566 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008318/0.0008318, allocations: 88.52 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.058e-05/2.051e-05, allocations: 4 kB / 337.1 MB, free: 9.938 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.1215, allocations: 50.42 MB / 387.6 MB, free: 7.484 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3159/0.4375, allocations: 78.88 MB / 466.4 MB, free: 15.86 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002187/0.4377, allocations: 75.95 kB / 466.5 MB, free: 15.79 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0111/0.4489, allocations: 4.053 MB / 470.6 MB, free: 11.72 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.4489, allocations: 0 / 470.6 MB, free: 11.72 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.438e-05/0.4489, allocations: 4 kB / 470.6 MB, free: 11.72 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.0006514/0.4496, allocations: 487 kB / 471 MB, free: 11.2 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.61e-05/0.4496, allocations: 11.97 kB / 471.1 MB, free: 11.19 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.304e-05/0.4497, allocations: 27.72 kB / 471.1 MB, free: 11.16 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002805/0.45, allocations: 230.7 kB / 471.3 MB, free: 10.89 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.499e-05/0.45, allocations: 8 kB / 471.3 MB, free: 10.89 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.412e-05/0.4501, allocations: 11.91 kB / 471.3 MB, free: 10.88 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002543/0.4503, allocations: 132.8 kB / 471.5 MB, free: 10.75 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003086/0.4506, allocations: 158.3 kB / 471.6 MB, free: 10.59 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.4507, allocations: 0 / 471.6 MB, free: 10.59 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.035e-05/0.4507, allocations: 0 / 471.6 MB, free: 10.59 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.747e-06/0.4507, allocations: 4 kB / 471.6 MB, free: 10.58 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001243/0.4519, allocations: 0.8151 MB / 472.4 MB, free: 9.688 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002592/0.4522, allocations: 130.6 kB / 472.6 MB, free: 9.551 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001738/0.4524, allocations: 88.73 kB / 472.6 MB, free: 9.461 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.84e-05/0.4524, allocations: 4 kB / 472.6 MB, free: 9.457 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.535e-05/0.4525, allocations: 38.56 kB / 472.7 MB, free: 9.41 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.313e-06/0.4525, allocations: 0 / 472.7 MB, free: 9.41 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.000596/0.4531, allocations: 204 kB / 472.9 MB, free: 9.203 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.917e-05/0.4531, allocations: 55.41 kB / 472.9 MB, free: 9.137 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001248/0.4533, allocations: 145.5 kB / 473.1 MB, free: 8.988 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.702e-05/0.4533, allocations: 25.7 kB / 473.1 MB, free: 8.957 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.147e-05/0.4534, allocations: 148.2 kB / 473.2 MB, free: 8.809 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.857e-05/0.4534, allocations: 59.11 kB / 473.3 MB, free: 8.75 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.496e-06/0.4534, allocations: 0 / 473.3 MB, free: 8.75 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.4535, allocations: 322.8 kB / 473.6 MB, free: 8.426 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.86e-05/0.4536, allocations: 48.36 kB / 473.7 MB, free: 8.375 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.32e-05/0.4537, allocations: 58.28 kB / 473.7 MB, free: 8.312 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001803/0.4539, allocations: 59.95 kB / 473.8 MB, free: 8.254 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.4539, allocations: 4 kB / 473.8 MB, free: 8.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004306/0.4544, allocations: 208.4 kB / 474 MB, free: 8.039 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.4544, allocations: 4 kB / 474 MB, free: 8.035 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/0.4544, allocations: 4 kB / 474 MB, free: 8.031 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005248/0.4549, allocations: 104.8 kB / 474.1 MB, free: 7.926 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001509/0.4551, allocations: 39.91 kB / 474.1 MB, free: 7.887 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005387/0.4556, allocations: 0.6187 MB / 474.8 MB, free: 7.242 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001272/0.4558, allocations: 15.91 kB / 474.8 MB, free: 7.227 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.422e-05/0.4558, allocations: 4 kB / 474.8 MB, free: 7.223 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 () * 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 9.159e-05/0.4559, allocations: 116.8 kB / 474.9 MB, free: 7.102 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004547/0.4564, allocations: 195.6 kB / 475.1 MB, free: 6.902 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.974e-05/0.4564, allocations: 19.77 kB / 475.1 MB, free: 6.883 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000447/0.4569, allocations: 212.3 kB / 475.3 MB, free: 6.668 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.4569, allocations: 4 kB / 475.3 MB, free: 6.664 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.4569, allocations: 0 / 475.3 MB, free: 6.664 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.4569, allocations: 3.984 kB / 475.3 MB, free: 6.66 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008319/0.4578, allocations: 0.5448 MB / 475.9 MB, free: 6.066 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.4578, allocations: 0 / 475.9 MB, free: 6.066 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001487/0.4579, allocations: 35.91 kB / 475.9 MB, free: 6.031 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004317/0.4584, allocations: 104.7 kB / 476 MB, free: 5.926 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.338e-05/0.4584, allocations: 0 / 476 MB, free: 5.926 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005521/0.4589, allocations: 0.6421 MB / 476.6 MB, free: 5.258 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.459, allocations: 3.953 kB / 476.6 MB, free: 5.254 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005769/0.4596, allocations: 383.6 kB / 477 MB, free: 4.852 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.88e-05/0.4596, allocations: 92.88 kB / 477.1 MB, free: 4.742 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.772e-05/0.4597, allocations: 0 / 477.1 MB, free: 4.742 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001439/0.4598, allocations: 11.98 kB / 477.1 MB, free: 4.73 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.012e-05/0.4599, allocations: 15.95 kB / 477.1 MB, free: 4.715 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.326e-05/0.4599, allocations: 8 kB / 477.1 MB, free: 4.707 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.227e-05/0.46, allocations: 120.3 kB / 477.3 MB, free: 4.59 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.46, allocations: 0 / 477.3 MB, free: 4.59 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000303/0.4603, allocations: 63.78 kB / 477.3 MB, free: 4.527 MB / 346.7 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.0009382/0.4612, allocations: 0.9905 MB / 478.3 MB, free: 3.504 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003296/0.4616, allocations: 116 kB / 478.4 MB, free: 3.391 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.4616, allocations: 0 / 478.4 MB, free: 3.391 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00015/0.4617, allocations: 84.09 kB / 478.5 MB, free: 3.309 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002644/0.462, allocations: 24.05 kB / 478.5 MB, free: 3.285 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009374/0.463, allocations: 439.6 kB / 479 MB, free: 2.816 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003364/0.4633, allocations: 0.7439 MB / 479.7 MB, free: 2.047 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 6.521e-05/0.4634, allocations: 13.14 kB / 479.7 MB, free: 2.035 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.229e-05/0.4635, allocations: 59.42 kB / 479.8 MB, free: 1.977 MB / 346.7 MB Notification: Performance of SimCode: time 3.11e-07/0.4635, allocations: 0 / 479.8 MB, free: 1.977 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02367/0.4872, allocations: 3.642 MB / 483.4 MB, free: 14.36 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002447/0.4875, allocations: 144.7 kB / 483.6 MB, free: 14.17 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.654/2.142, allocations: 0 / 483.6 MB, free: 14.17 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingRectifier_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingRectifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat does not exist to compare? outputFormat=mat