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.001566/0.001566, allocations: 185.9 kB / 16.41 MB, free: 5.727 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.922/1.922, allocations: 205.4 MB / 222.5 MB, free: 9.141 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.001144/0.001144, allocations: 95.48 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003941/0.000394, allocations: 8 kB / 327.1 MB, free: 128 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3279/0.3283, allocations: 47.57 MB / 374.6 MB, free: 45.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1273/0.4557, allocations: 78.05 MB / 452.7 MB, free: 2.707 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003033/0.456, allocations: 75.97 kB / 452.8 MB, free: 2.633 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01793/0.474, allocations: 3.975 MB / 456.7 MB, free: 14.64 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.474, allocations: 0 / 456.7 MB, free: 14.64 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.014e-05/0.4741, allocations: 4 kB / 456.7 MB, free: 14.64 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.001069/0.4751, allocations: 0.5028 MB / 457.2 MB, free: 14.08 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.181e-05/0.4752, allocations: 8.031 kB / 457.2 MB, free: 14.07 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001009/0.4753, allocations: 54.55 kB / 457.3 MB, free: 14.01 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.932e-05/0.4754, allocations: 23.72 kB / 457.3 MB, free: 13.99 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003834/0.4758, allocations: 235.4 kB / 457.6 MB, free: 13.71 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.704e-05/0.4758, allocations: 12.44 kB / 457.6 MB, free: 13.7 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.184e-05/0.4759, allocations: 23.91 kB / 457.6 MB, free: 13.68 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005871/0.4765, allocations: 199.1 kB / 457.8 MB, free: 13.48 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2e-05/0.4766, allocations: 0 / 457.8 MB, free: 13.48 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.919e-05/0.4766, allocations: 12 kB / 457.8 MB, free: 13.46 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.4766, allocations: 4 kB / 457.8 MB, free: 13.46 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005298/0.4772, allocations: 157.6 kB / 457.9 MB, free: 13.31 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002061/0.4793, allocations: 0.8633 MB / 458.8 MB, free: 12.36 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004841/0.4798, allocations: 150.6 kB / 459 MB, free: 12.2 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.444e-05/0.4798, allocations: 0 / 459 MB, free: 12.2 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.106e-05/0.4799, allocations: 38.56 kB / 459 MB, free: 12.16 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.874e-06/0.4799, allocations: 0 / 459 MB, free: 12.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.002095/0.482, allocations: 426 kB / 459.4 MB, free: 11.71 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.211e-05/0.4821, allocations: 51.41 kB / 459.5 MB, free: 11.65 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002335/0.4823, allocations: 159.3 kB / 459.6 MB, free: 11.49 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.169e-05/0.4824, allocations: 33.7 kB / 459.7 MB, free: 11.45 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001493/0.4826, allocations: 202.5 kB / 459.9 MB, free: 11.25 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.056e-05/0.4826, allocations: 67.08 kB / 459.9 MB, free: 11.19 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.74e-05/0.4827, allocations: 4 kB / 459.9 MB, free: 11.18 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.4828, allocations: 318.8 kB / 460.2 MB, free: 10.86 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002002/0.483, allocations: 52.34 kB / 460.3 MB, free: 10.81 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002182/0.4833, allocations: 78.56 kB / 460.4 MB, free: 10.73 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002313/0.4835, allocations: 60.47 kB / 460.4 MB, free: 10.68 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.4835, allocations: 0 / 460.4 MB, free: 10.68 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0008086/0.4843, allocations: 223.8 kB / 460.6 MB, free: 10.45 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.143e-05/0.4844, allocations: 7.938 kB / 460.6 MB, free: 10.44 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.064e-06/0.4844, allocations: 4.031 kB / 460.6 MB, free: 10.44 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002227/0.4866, allocations: 220.6 kB / 460.9 MB, free: 10.22 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002654/0.4869, allocations: 27.98 kB / 460.9 MB, free: 10.19 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007441/0.4877, allocations: 0.6147 MB / 461.5 MB, free: 9.551 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002322/0.4879, allocations: 15.94 kB / 461.5 MB, free: 9.535 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.113e-05/0.488, allocations: 4 kB / 461.5 MB, free: 9.531 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.0001946/0.4882, allocations: 133.8 kB / 461.7 MB, free: 9.391 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.642e-05/0.4882, allocations: 11.91 kB / 461.7 MB, free: 9.379 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007979/0.4891, allocations: 247 kB / 461.9 MB, free: 9.129 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.136e-06/0.4891, allocations: 4 kB / 461.9 MB, free: 9.125 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.4891, allocations: 3.953 kB / 461.9 MB, free: 9.121 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.4891, allocations: 3.984 kB / 461.9 MB, free: 9.117 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004773/0.4896, allocations: 277.5 kB / 462.2 MB, free: 8.797 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.4896, allocations: 0 / 462.2 MB, free: 8.797 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002959/0.4899, allocations: 31.98 kB / 462.2 MB, free: 8.766 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001953/0.4919, allocations: 216.5 kB / 462.4 MB, free: 8.551 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.842e-05/0.4919, allocations: 7.984 kB / 462.4 MB, free: 8.543 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007392/0.4927, allocations: 0.6245 MB / 463.1 MB, free: 7.895 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.4927, allocations: 4.062 kB / 463.1 MB, free: 7.891 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009607/0.4937, allocations: 380.5 kB / 463.4 MB, free: 7.5 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000109/0.4938, allocations: 100.8 kB / 463.5 MB, free: 7.383 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.079e-05/0.4939, allocations: 0 / 463.5 MB, free: 7.383 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002567/0.4941, allocations: 24.05 kB / 463.6 MB, free: 7.359 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.733e-05/0.4942, allocations: 11.92 kB / 463.6 MB, free: 7.348 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.24e-05/0.4942, allocations: 8 kB / 463.6 MB, free: 7.34 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001663/0.4944, allocations: 127.5 kB / 463.7 MB, free: 7.215 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.4944, allocations: 0 / 463.7 MB, free: 7.215 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004461/0.4949, allocations: 67.75 kB / 463.8 MB, free: 7.148 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.001481/0.4964, allocations: 0.9403 MB / 464.7 MB, free: 6.18 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006545/0.4971, allocations: 155.9 kB / 464.9 MB, free: 6.027 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.4971, allocations: 0 / 464.9 MB, free: 6.027 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003292/0.4974, allocations: 84.78 kB / 464.9 MB, free: 5.945 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004265/0.4979, allocations: 19.98 kB / 465 MB, free: 5.926 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003506/0.5014, allocations: 1.537 MB / 466.5 MB, free: 4.328 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004286/0.5019, allocations: 0.7403 MB / 467.2 MB, free: 3.562 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001484/0.502, allocations: 63.36 kB / 467.3 MB, free: 3.504 MB / 346.7 MB Notification: Performance of SimCode: time 9.62e-07/0.5021, allocations: 0 / 467.3 MB, free: 3.504 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.75/3.252, allocations: 3.913 MB / 471.2 MB, free: 15.59 MB / 362.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