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.0009445/0.0009445, allocations: 172.3 kB / 14.1 MB, free: 1.223 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.408/1.408, allocations: 205.2 MB / 219.8 MB, free: 14.26 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.0008083/0.0008084, allocations: 90.62 kB / 268 MB, free: 14.09 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.627e-05/2.629e-05, allocations: 4 kB / 322.5 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09278/0.09282, allocations: 47.57 MB / 370.1 MB, free: 1.629 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2982/0.3911, allocations: 77.96 MB / 448.1 MB, free: 15.31 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002766/0.3914, allocations: 70.41 kB / 448.1 MB, free: 15.28 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01106/0.4025, allocations: 3.96 MB / 452.1 MB, free: 11.91 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.415e-06/0.4026, allocations: 0 / 452.1 MB, free: 11.91 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.564e-05/0.4026, allocations: 8 kB / 452.1 MB, free: 11.9 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.0007047/0.4033, allocations: 486.9 kB / 452.6 MB, free: 11.39 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.394e-05/0.4034, allocations: 12.03 kB / 452.6 MB, free: 11.38 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.484e-05/0.4034, allocations: 53 kB / 452.6 MB, free: 11.33 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.88e-05/0.4035, allocations: 31.72 kB / 452.7 MB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002847/0.4038, allocations: 229 kB / 452.9 MB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.994e-05/0.4038, allocations: 15.25 kB / 452.9 MB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.768e-05/0.4039, allocations: 18.69 kB / 452.9 MB, free: 11.03 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003277/0.4042, allocations: 185.6 kB / 453.1 MB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.4042, allocations: 2.188 kB / 453.1 MB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.286e-05/0.4043, allocations: 6.375 kB / 453.1 MB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.061e-05/0.4043, allocations: 4 kB / 453.1 MB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000254/0.4045, allocations: 142.1 kB / 453.3 MB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001386/0.4059, allocations: 0.8661 MB / 454.1 MB, free: 9.98 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002773/0.4062, allocations: 140.4 kB / 454.3 MB, free: 9.879 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001762/0.4064, allocations: 95.56 kB / 454.4 MB, free: 9.812 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.885e-05/0.4064, allocations: 4 kB / 454.4 MB, free: 9.809 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.384e-05/0.4065, allocations: 34.25 kB / 454.4 MB, free: 9.77 MB / 330.7 MB Notification: Performance of pre-optimization done (n=17): time 1.292e-06/0.4065, allocations: 0 / 454.4 MB, free: 9.77 MB / 330.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005515/0.4071, allocations: 195.7 kB / 454.6 MB, free: 9.613 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.392e-05/0.4071, allocations: 59.41 kB / 454.7 MB, free: 9.543 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001608/0.4073, allocations: 160.5 kB / 454.8 MB, free: 9.398 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.897e-05/0.4073, allocations: 32.7 kB / 454.8 MB, free: 9.363 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000106/0.4074, allocations: 141.5 kB / 455 MB, free: 9.238 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.462e-05/0.4075, allocations: 64.47 kB / 455 MB, free: 9.184 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.848e-06/0.4075, allocations: 7.5 kB / 455 MB, free: 9.18 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.4077, allocations: 326.8 kB / 455.4 MB, free: 8.855 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.147e-05/0.4078, allocations: 47.25 kB / 455.4 MB, free: 8.828 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001001/0.4079, allocations: 65.28 kB / 455.5 MB, free: 8.777 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001034/0.408, allocations: 63.72 kB / 455.5 MB, free: 8.734 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.408, allocations: 0 / 455.5 MB, free: 8.734 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003639/0.4084, allocations: 207.5 kB / 455.7 MB, free: 8.57 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.257e-05/0.4084, allocations: 4 kB / 455.7 MB, free: 8.566 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/0.4084, allocations: 4 kB / 455.8 MB, free: 8.562 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001216/0.4096, allocations: 223.8 kB / 456 MB, free: 8.355 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000136/0.4098, allocations: 31.98 kB / 456 MB, free: 8.324 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004647/0.4103, allocations: 0.6135 MB / 456.6 MB, free: 7.723 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000132/0.4104, allocations: 19.7 kB / 456.6 MB, free: 7.707 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.509e-05/0.4104, allocations: 4.078 kB / 456.6 MB, free: 7.703 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 9.816e-05/0.4105, allocations: 108.9 kB / 456.7 MB, free: 7.594 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.42e-05/0.4106, allocations: 15.81 kB / 456.8 MB, free: 7.578 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004351/0.411, allocations: 225.1 kB / 457 MB, free: 7.41 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.411, allocations: 4.062 kB / 457 MB, free: 7.406 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.4111, allocations: 3.953 kB / 457 MB, free: 7.402 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.4111, allocations: 3.984 kB / 457 MB, free: 7.398 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000785/0.4119, allocations: 0.5753 MB / 457.6 MB, free: 6.863 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.4119, allocations: 4 kB / 457.6 MB, free: 6.859 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001468/0.412, allocations: 27.92 kB / 457.6 MB, free: 6.832 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00101/0.413, allocations: 216 kB / 457.8 MB, free: 6.633 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.746e-05/0.4131, allocations: 7.672 kB / 457.8 MB, free: 6.629 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000427/0.4135, allocations: 0.6169 MB / 458.4 MB, free: 6.027 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.4135, allocations: 4.062 kB / 458.4 MB, free: 6.023 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005236/0.4141, allocations: 384.8 kB / 458.8 MB, free: 5.672 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.806e-05/0.4141, allocations: 92.89 kB / 458.9 MB, free: 5.562 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.755e-05/0.4142, allocations: 8 kB / 458.9 MB, free: 5.555 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001519/0.4143, allocations: 24 kB / 458.9 MB, free: 5.531 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.591e-05/0.4144, allocations: 11.92 kB / 458.9 MB, free: 5.52 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.301e-05/0.4144, allocations: 4 kB / 458.9 MB, free: 5.516 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001003/0.4145, allocations: 123.3 kB / 459.1 MB, free: 5.395 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4145, allocations: 0 / 459.1 MB, free: 5.395 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003082/0.4148, allocations: 71.69 kB / 459.1 MB, free: 5.324 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.0009789/0.4158, allocations: 1.004 MB / 460.1 MB, free: 4.281 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003246/0.4162, allocations: 128.1 kB / 460.3 MB, free: 4.156 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.828e-06/0.4162, allocations: 8.062 kB / 460.3 MB, free: 4.148 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001633/0.4163, allocations: 79.91 kB / 460.4 MB, free: 4.07 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002417/0.4166, allocations: 27.94 kB / 460.4 MB, free: 4.043 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009302/0.4175, allocations: 445.3 kB / 460.8 MB, free: 3.57 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003323/0.4179, allocations: 0.7441 MB / 461.6 MB, free: 2.801 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 7.354e-05/0.418, allocations: 9.328 kB / 461.6 MB, free: 2.793 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.73e-05/0.4181, allocations: 55.42 kB / 461.6 MB, free: 2.738 MB / 330.7 MB Notification: Performance of SimCode: time 4.51e-07/0.4181, allocations: 0 / 461.6 MB, free: 2.738 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01679/0.4349, allocations: 4.15 MB / 465.8 MB, free: 14.59 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001948/0.4351, allocations: 189.8 kB / 466 MB, free: 14.36 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.583/2.018, allocations: 7.938 kB / 466 MB, free: 14.35 MB / 346.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