Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.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.HeatingPNP_NORGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",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.0009602/0.0009603, allocations: 171.6 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.449/1.449, allocations: 205.2 MB / 219.8 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.0009271/0.0009271, allocations: 82.72 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.494e-05/2.497e-05, allocations: 3.984 kB / 322.5 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09126/0.0913, allocations: 47.57 MB / 370.1 MB, free: 1.621 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3005/0.3919, allocations: 81.08 MB / 451.2 MB, free: 12.23 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002196/0.3922, allocations: 64.78 kB / 451.3 MB, free: 12.2 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03414/0.4263, allocations: 12.1 MB / 463.4 MB, free: 1.52 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4264, allocations: 0 / 463.4 MB, free: 1.52 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.909e-05/0.4264, allocations: 16 kB / 463.4 MB, free: 1.504 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: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.002097/0.4285, allocations: 1.043 MB / 464.4 MB, free: 408 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.4285, allocations: 12.03 kB / 464.4 MB, free: 396 kB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001178/0.4287, allocations: 102.5 kB / 464.5 MB, free: 284 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001428/0.4288, allocations: 86.97 kB / 464.6 MB, free: 196 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007862/0.4296, allocations: 0.4937 MB / 465.1 MB, free: 15.66 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.886e-05/0.4297, allocations: 45.31 kB / 465.1 MB, free: 15.61 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001038/0.4298, allocations: 60 kB / 465.2 MB, free: 15.55 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00094/0.4307, allocations: 0.5454 MB / 465.8 MB, free: 15 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.747e-05/0.4308, allocations: 0 / 465.8 MB, free: 15 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.921e-05/0.4308, allocations: 28 kB / 465.8 MB, free: 14.97 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.606e-05/0.4309, allocations: 16 kB / 465.8 MB, free: 14.96 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008605/0.4317, allocations: 0.5362 MB / 466.3 MB, free: 14.42 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003626/0.4354, allocations: 2.291 MB / 468.6 MB, free: 12 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007968/0.4362, allocations: 460.9 kB / 469.1 MB, free: 11.55 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003792/0.4366, allocations: 255.5 kB / 469.3 MB, free: 11.3 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.644e-05/0.4366, allocations: 20.41 kB / 469.3 MB, free: 11.28 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000559/0.4372, allocations: 341.7 kB / 469.7 MB, free: 10.91 MB / 346.7 MB Notification: Performance of pre-optimization done (n=54): time 3.136e-06/0.4372, allocations: 0 / 469.7 MB, free: 10.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=94): time 0.05629/0.4935, allocations: 13.47 MB / 483.1 MB, free: 13.37 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001087/0.4937, allocations: 145.3 kB / 483.3 MB, free: 13.2 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006454/0.4943, allocations: 428.8 kB / 483.7 MB, free: 12.77 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002521/0.4946, allocations: 49.62 kB / 483.8 MB, free: 12.71 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003146/0.4949, allocations: 364 kB / 484.1 MB, free: 12.35 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003035/0.4952, allocations: 307.5 kB / 484.4 MB, free: 12.05 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.109e-05/0.4953, allocations: 27.94 kB / 484.4 MB, free: 12.02 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000177/0.4955, allocations: 378.8 kB / 484.8 MB, free: 11.64 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008315/0.4963, allocations: 470 kB / 485.3 MB, free: 11.18 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009306/0.4973, allocations: 0.6731 MB / 485.9 MB, free: 10.43 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008268/0.4981, allocations: 0.5431 MB / 486.5 MB, free: 9.875 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.4981, allocations: 3.938 kB / 486.5 MB, free: 9.871 MB / 362.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.01978/0.5179, allocations: 4.809 MB / 491.3 MB, free: 5.031 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.86e-05/0.518, allocations: 71.39 kB / 491.4 MB, free: 4.949 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.402e-05/0.518, allocations: 4 kB / 491.4 MB, free: 4.945 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03163/0.5497, allocations: 6.919 MB / 498.3 MB, free: 14.01 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000731/0.5504, allocations: 179.7 kB / 498.5 MB, free: 13.83 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004238/0.5547, allocations: 2.661 MB / 0.4894 GB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001646/0.5564, allocations: 223.8 kB / 0.4896 GB, free: 10.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001172/0.5565, allocations: 47.97 kB / 0.4896 GB, free: 10.85 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.V1.signalSource.T_start,V1.signalSource.T_start,$PRE.V1.signalSource.count,V1.signalSource.count,$PRE.V2.signalSource.T_start,V2.signalSource.T_start,$PRE.V2.signalSource.count,V2.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 32} Notification: Performance of prepare postOptimizeDAE: time 0.0002626/0.5568, allocations: 165.2 kB / 0.4898 GB, free: 10.68 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001426/0.5569, allocations: 71.16 kB / 0.4899 GB, free: 10.61 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01961/0.5765, allocations: 4.688 MB / 0.4944 GB, free: 5.898 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-05/0.5766, allocations: 12 kB / 0.4945 GB, free: 5.887 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.237e-05/0.5766, allocations: 0 / 0.4945 GB, free: 5.887 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.728e-05/0.5767, allocations: 3.984 kB / 0.4945 GB, free: 5.883 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00162/0.5783, allocations: 1.106 MB / 0.4955 GB, free: 4.719 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.139e-06/0.5783, allocations: 4 kB / 0.4955 GB, free: 4.715 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005845/0.5789, allocations: 123.9 kB / 0.4957 GB, free: 4.594 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03059/0.6095, allocations: 6.895 MB / 0.5024 GB, free: 13.68 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002207/0.6098, allocations: 19.98 kB / 0.5024 GB, free: 13.66 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004122/0.6139, allocations: 2.7 MB / 0.505 GB, free: 10.91 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.6139, allocations: 0 / 0.505 GB, free: 10.91 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02042/0.6344, allocations: 5.298 MB / 0.5102 GB, free: 5.59 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003388/0.6348, allocations: 148.1 kB / 0.5104 GB, free: 5.43 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001731/0.6349, allocations: 23.94 kB / 0.5104 GB, free: 5.406 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001418/0.6364, allocations: 211.9 kB / 0.5106 GB, free: 5.199 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002593/0.6366, allocations: 100.6 kB / 0.5107 GB, free: 5.102 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.874e-05/0.6367, allocations: 35.97 kB / 0.5107 GB, free: 5.066 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003696/0.6371, allocations: 325.6 kB / 0.511 GB, free: 4.75 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.563e-06/0.6371, allocations: 0 / 0.511 GB, free: 4.75 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000731/0.6379, allocations: 267.9 kB / 0.5113 GB, free: 4.488 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (HeatCapacitor1.T) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,V1.signalSource.T_start,V1.signalSource.count,V2.signalSource.T_start,V2.signalSource.count) * Number of discrete states: 2 (V2.signalSource.count,V1.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 36} Notification: Performance of Backend phase and start with SimCode phase: time 0.02102/0.6589, allocations: 5.903 MB / 0.5171 GB, free: 14.54 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003478/0.6624, allocations: 1.512 MB / 0.5185 GB, free: 13 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.6624, allocations: 4.375 kB / 0.5185 GB, free: 13 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002245/0.6647, allocations: 0.8213 MB / 0.5193 GB, free: 12.18 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006617/0.6654, allocations: 106.8 kB / 0.5194 GB, free: 12.07 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002784/0.6682, allocations: 1.353 MB / 0.5208 GB, free: 10.68 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000432/0.6686, allocations: 0.9548 MB / 0.5217 GB, free: 9.695 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002742/0.6689, allocations: 58.06 kB / 0.5217 GB, free: 9.637 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000319/0.6692, allocations: 264.7 kB / 0.522 GB, free: 9.383 MB / 410.7 MB Notification: Performance of SimCode: time 6.21e-07/0.6692, allocations: 0 / 0.522 GB, free: 9.383 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2286/0.8979, allocations: 27.17 MB / 0.5485 GB, free: 128.4 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001587/0.8981, allocations: 193.8 kB / 0.5487 GB, free: 128.1 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.675/3.573, allocations: 4 kB / 0.5487 GB, free: 128.1 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat does not exist to compare? outputFormat=mat