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.002393/0.002393, allocations: 182.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.273/2.273, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001092/0.001092, allocations: 94.64 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.21e-05/3.229e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09683/0.0969, allocations: 47.57 MB / 369.2 MB, free: 2.121 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4064/0.5033, allocations: 77.96 MB / 447.1 MB, free: 15.24 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002748/0.5037, allocations: 72.33 kB / 447.2 MB, free: 15.2 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0184/0.5221, allocations: 3.965 MB / 451.2 MB, free: 11.82 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.5222, allocations: 0 / 451.2 MB, free: 11.82 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.026e-05/0.5222, allocations: 4 kB / 451.2 MB, free: 11.82 MB / 330.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.001004/0.5232, allocations: 490.4 kB / 451.7 MB, free: 11.31 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.776e-05/0.5233, allocations: 11.97 kB / 451.7 MB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001414/0.5234, allocations: 55.3 kB / 451.7 MB, free: 11.25 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.916e-05/0.5235, allocations: 24.48 kB / 451.7 MB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003998/0.524, allocations: 231.9 kB / 452 MB, free: 10.97 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.693e-05/0.524, allocations: 18.88 kB / 452 MB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.3e-05/0.5241, allocations: 22.12 kB / 452 MB, free: 10.94 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005038/0.5246, allocations: 176.7 kB / 452.2 MB, free: 10.81 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.793e-05/0.5246, allocations: 4 kB / 452.2 MB, free: 10.81 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.851e-05/0.5247, allocations: 10.88 kB / 452.2 MB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.219e-05/0.5247, allocations: 6.188 kB / 452.2 MB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004238/0.5251, allocations: 141 kB / 452.3 MB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002058/0.5272, allocations: 0.8626 MB / 453.2 MB, free: 9.898 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000485/0.5277, allocations: 143.6 kB / 453.3 MB, free: 9.793 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002737/0.528, allocations: 92 kB / 453.4 MB, free: 9.73 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.79e-05/0.5281, allocations: 0 / 453.4 MB, free: 9.73 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.355e-05/0.5281, allocations: 34.56 kB / 453.5 MB, free: 9.688 MB / 330.7 MB Notification: Performance of pre-optimization done (n=17): time 1.863e-06/0.5281, allocations: 4 kB / 453.5 MB, free: 9.684 MB / 330.7 MB Notification: Performance of matching and sorting (n=17): time 0.000813/0.529, allocations: 204.7 kB / 453.7 MB, free: 9.52 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.439e-05/0.529, allocations: 51.41 kB / 453.7 MB, free: 9.457 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002315/0.5293, allocations: 161.1 kB / 453.9 MB, free: 9.312 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.915e-05/0.5293, allocations: 25.7 kB / 453.9 MB, free: 9.281 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001317/0.5295, allocations: 210 kB / 454.1 MB, free: 9.09 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.496e-05/0.5296, allocations: 58.67 kB / 454.2 MB, free: 9.039 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.328e-05/0.5296, allocations: 7.438 kB / 454.2 MB, free: 9.035 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.5297, allocations: 322.6 kB / 454.5 MB, free: 8.715 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001457/0.5299, allocations: 42.75 kB / 454.5 MB, free: 8.688 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001646/0.5301, allocations: 72.89 kB / 454.6 MB, free: 8.633 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001746/0.5303, allocations: 56.05 kB / 454.7 MB, free: 8.598 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.5303, allocations: 0 / 454.7 MB, free: 8.598 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006511/0.5309, allocations: 207.5 kB / 454.9 MB, free: 8.434 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.304e-05/0.531, allocations: 7.984 kB / 454.9 MB, free: 8.426 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/0.531, allocations: 0 / 454.9 MB, free: 8.426 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00227/0.5333, allocations: 216 kB / 455.1 MB, free: 8.223 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002872/0.5336, allocations: 43.91 kB / 455.1 MB, free: 8.184 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007305/0.5344, allocations: 0.6015 MB / 455.7 MB, free: 7.59 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002504/0.5346, allocations: 23.42 kB / 455.7 MB, free: 7.57 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.219e-05/0.5347, allocations: 11.75 kB / 455.8 MB, free: 7.562 MB / 330.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 0.0001291/0.5348, allocations: 108.6 kB / 455.9 MB, free: 7.453 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.844e-05/0.5349, allocations: 15.81 kB / 455.9 MB, free: 7.438 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007162/0.5356, allocations: 213.5 kB / 456.1 MB, free: 7.281 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.607e-06/0.5357, allocations: 4 kB / 456.1 MB, free: 7.277 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.5357, allocations: 3.953 kB / 456.1 MB, free: 7.273 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/0.5357, allocations: 3.984 kB / 456.1 MB, free: 7.27 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001292/0.537, allocations: 0.5849 MB / 456.7 MB, free: 6.727 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/0.537, allocations: 0 / 456.7 MB, free: 6.727 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000285/0.5373, allocations: 35.86 kB / 456.7 MB, free: 6.695 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001926/0.5393, allocations: 204.2 kB / 456.9 MB, free: 6.504 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.063e-05/0.5393, allocations: 7.75 kB / 456.9 MB, free: 6.5 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007221/0.54, allocations: 0.6168 MB / 457.5 MB, free: 5.898 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.5401, allocations: 0 / 457.5 MB, free: 5.898 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008829/0.541, allocations: 391.9 kB / 457.9 MB, free: 5.562 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.433e-05/0.5411, allocations: 96.55 kB / 458 MB, free: 5.453 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.07e-05/0.5411, allocations: 0 / 458 MB, free: 5.453 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002568/0.5414, allocations: 23.75 kB / 458 MB, free: 5.434 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.239e-05/0.5415, allocations: 11.98 kB / 458.1 MB, free: 5.422 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.248e-05/0.5415, allocations: 7.562 kB / 458.1 MB, free: 5.418 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001531/0.5417, allocations: 126.6 kB / 458.2 MB, free: 5.309 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.72e-07/0.5417, allocations: 4.062 kB / 458.2 MB, free: 5.305 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004375/0.5421, allocations: 67.64 kB / 458.3 MB, free: 5.242 MB / 330.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.001436/0.5436, allocations: 1.004 MB / 459.3 MB, free: 4.281 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005542/0.5442, allocations: 130.7 kB / 459.4 MB, free: 4.188 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.5442, allocations: 3.938 kB / 459.4 MB, free: 4.184 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002671/0.5445, allocations: 79.36 kB / 459.5 MB, free: 4.129 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003811/0.5449, allocations: 27.66 kB / 459.5 MB, free: 4.109 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001421/0.5463, allocations: 465.5 kB / 460 MB, free: 3.645 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004081/0.5468, allocations: 0.7441 MB / 460.7 MB, free: 2.875 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000142/0.5469, allocations: 61.78 kB / 460.8 MB, free: 2.852 MB / 330.7 MB Notification: Performance of SimCode: time 1.152e-06/0.5469, allocations: 0 / 460.8 MB, free: 2.852 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.725/3.272, allocations: 3.91 MB / 464.7 MB, free: 14.98 MB / 346.7 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