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.001347/0.001346, allocations: 178.4 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.577/1.577, allocations: 205.3 MB / 214.4 MB, free: 1.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008636/0.0008635, allocations: 90.38 kB / 262.5 MB, free: 1.617 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.047e-05/2.048e-05, allocations: 4 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09617/0.0962, allocations: 47.58 MB / 363.2 MB, free: 6.969 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3087/0.4049, allocations: 77.54 MB / 440.7 MB, free: 1.824 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002009/0.4052, allocations: 73.02 kB / 440.8 MB, free: 1.785 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01024/0.4154, allocations: 3.927 MB / 444.7 MB, free: 14.5 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.4155, allocations: 4 kB / 444.7 MB, free: 14.49 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.408e-05/0.4155, allocations: 11.98 kB / 444.7 MB, free: 14.48 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.0005957/0.4161, allocations: 480.9 kB / 445.2 MB, free: 13.98 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.4161, allocations: 8.031 kB / 445.2 MB, free: 13.97 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.736e-05/0.4162, allocations: 27.7 kB / 445.2 MB, free: 13.95 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002437/0.4164, allocations: 225.8 kB / 445.4 MB, free: 13.7 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.643e-05/0.4165, allocations: 11.95 kB / 445.5 MB, free: 13.69 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.535e-05/0.4165, allocations: 12 kB / 445.5 MB, free: 13.68 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002523/0.4168, allocations: 134.5 kB / 445.6 MB, free: 13.59 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002603/0.417, allocations: 145.1 kB / 445.7 MB, free: 13.47 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.4171, allocations: 0 / 445.7 MB, free: 13.47 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.947e-05/0.4171, allocations: 0 / 445.7 MB, free: 13.47 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.4171, allocations: 10.08 kB / 445.8 MB, free: 13.46 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001129/0.4182, allocations: 0.818 MB / 446.6 MB, free: 12.7 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002279/0.4185, allocations: 141 kB / 446.7 MB, free: 12.6 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001506/0.4186, allocations: 87.03 kB / 446.8 MB, free: 12.54 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.012e-05/0.4187, allocations: 4 kB / 446.8 MB, free: 12.53 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.154e-05/0.4187, allocations: 38.05 kB / 446.8 MB, free: 12.49 MB / 330.7 MB Notification: Performance of pre-optimization done (n=17): time 1.353e-06/0.4187, allocations: 0 / 446.8 MB, free: 12.49 MB / 330.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005341/0.4192, allocations: 196.1 kB / 447 MB, free: 12.32 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.475e-05/0.4193, allocations: 55.41 kB / 447.1 MB, free: 12.26 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001235/0.4194, allocations: 149.4 kB / 447.2 MB, free: 12.12 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.4195, allocations: 29.7 kB / 447.3 MB, free: 12.09 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.936e-05/0.4195, allocations: 148.1 kB / 447.4 MB, free: 11.96 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.974e-05/0.4196, allocations: 57.3 kB / 447.5 MB, free: 11.91 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.985e-06/0.4196, allocations: 0 / 447.5 MB, free: 11.91 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.4197, allocations: 332.3 kB / 447.8 MB, free: 11.58 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.849e-05/0.4198, allocations: 45.19 kB / 447.8 MB, free: 11.55 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.298e-05/0.4199, allocations: 59.2 kB / 447.9 MB, free: 11.51 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001714/0.4201, allocations: 68.25 kB / 447.9 MB, free: 11.46 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.4201, allocations: 0 / 447.9 MB, free: 11.46 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004152/0.4205, allocations: 211.6 kB / 448.2 MB, free: 11.29 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.4205, allocations: 4 kB / 448.2 MB, free: 11.29 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.4205, allocations: 0 / 448.2 MB, free: 11.29 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004985/0.421, allocations: 105.1 kB / 448.3 MB, free: 11.19 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001349/0.4212, allocations: 27.98 kB / 448.3 MB, free: 11.16 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005265/0.4217, allocations: 0.6342 MB / 448.9 MB, free: 10.54 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001101/0.4218, allocations: 11.88 kB / 448.9 MB, free: 10.53 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.569e-05/0.4219, allocations: 11.31 kB / 448.9 MB, free: 10.52 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 8.806e-05/0.422, allocations: 105.9 kB / 449 MB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004319/0.4224, allocations: 212.2 kB / 449.3 MB, free: 10.24 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.79e-05/0.4224, allocations: 15.81 kB / 449.3 MB, free: 10.22 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000416/0.4229, allocations: 203.3 kB / 449.5 MB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.4229, allocations: 0 / 449.5 MB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.4229, allocations: 3.938 kB / 449.5 MB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.4229, allocations: 0 / 449.5 MB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007543/0.4237, allocations: 0.5367 MB / 450 MB, free: 9.566 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.4237, allocations: 0 / 450 MB, free: 9.566 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001475/0.4238, allocations: 27.98 kB / 450 MB, free: 9.539 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004258/0.4243, allocations: 102.8 kB / 450.1 MB, free: 9.449 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.525e-05/0.4243, allocations: 3.984 kB / 450.1 MB, free: 9.445 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005069/0.4248, allocations: 0.6432 MB / 450.8 MB, free: 8.82 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.4248, allocations: 4.062 kB / 450.8 MB, free: 8.816 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005437/0.4254, allocations: 385.9 kB / 451.2 MB, free: 8.484 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.162e-05/0.4254, allocations: 96.84 kB / 451.3 MB, free: 8.371 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.659e-05/0.4255, allocations: 4.156 kB / 451.3 MB, free: 8.367 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001427/0.4256, allocations: 19.92 kB / 451.3 MB, free: 8.348 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.982e-05/0.4257, allocations: 7.984 kB / 451.3 MB, free: 8.34 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.208e-05/0.4257, allocations: 11.81 kB / 451.3 MB, free: 8.332 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.684e-05/0.4258, allocations: 114.7 kB / 451.4 MB, free: 8.23 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4258, allocations: 3.938 kB / 451.4 MB, free: 8.227 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002871/0.4261, allocations: 63.66 kB / 451.5 MB, free: 8.168 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.0008983/0.427, allocations: 0.9933 MB / 452.5 MB, free: 7.207 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003038/0.4273, allocations: 129.9 kB / 452.6 MB, free: 7.113 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.4273, allocations: 0 / 452.6 MB, free: 7.113 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001411/0.4275, allocations: 76.89 kB / 452.7 MB, free: 7.059 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002447/0.4277, allocations: 15.86 kB / 452.7 MB, free: 7.047 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008646/0.4286, allocations: 417.6 kB / 453.1 MB, free: 6.629 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003212/0.4289, allocations: 0.7477 MB / 453.8 MB, free: 5.855 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 6.061e-05/0.429, allocations: 5.219 kB / 453.9 MB, free: 5.852 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.221e-05/0.4291, allocations: 62.91 kB / 453.9 MB, free: 5.828 MB / 330.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4291, allocations: 4 kB / 453.9 MB, free: 5.824 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02237/0.4515, allocations: 3.598 MB / 457.5 MB, free: 2.23 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002156/0.4517, allocations: 144.5 kB / 457.7 MB, free: 2.035 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.699/2.15, allocations: 0 / 457.7 MB, free: 2.035 MB / 330.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