Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001658/0.001658, allocations: 180 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.412/1.412, allocations: 223.2 MB / 240.3 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009332/0.0009332, allocations: 102.8 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002835/0.0002843, allocations: 11.98 kB / 351.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2924/0.2927, allocations: 50.4 MB / 401.6 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1097/0.4025, allocations: 83.04 MB / 484.6 MB, free: 13.42 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002384/0.4028, allocations: 81.19 kB / 484.7 MB, free: 13.34 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03519/0.438, allocations: 12.73 MB / 497.4 MB, free: 0.5625 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.438, allocations: 0 / 497.4 MB, free: 0.5625 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.282e-05/0.4381, allocations: 16 kB / 497.4 MB, free: 0.5469 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.0025/0.4406, allocations: 1.159 MB / 498.6 MB, free: 15.32 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.81e-05/0.4406, allocations: 12.03 kB / 498.6 MB, free: 15.31 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000149/0.4408, allocations: 106.5 kB / 498.7 MB, free: 15.2 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001511/0.4409, allocations: 94.88 kB / 498.8 MB, free: 15.11 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008737/0.4418, allocations: 0.5076 MB / 499.3 MB, free: 14.55 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.219e-05/0.4419, allocations: 49.3 kB / 499.4 MB, free: 14.51 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001094/0.442, allocations: 71.86 kB / 499.4 MB, free: 14.44 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00138/0.4434, allocations: 0.6662 MB / 0.4884 GB, free: 13.76 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.785e-05/0.4434, allocations: 0 / 0.4884 GB, free: 13.76 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.194e-05/0.4435, allocations: 28 kB / 0.4884 GB, free: 13.73 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.691e-05/0.4435, allocations: 16 kB / 0.4884 GB, free: 13.72 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001706/0.4452, allocations: 0.7507 MB / 0.4892 GB, free: 12.97 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004097/0.4493, allocations: 2.341 MB / 0.4914 GB, free: 10.5 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001492/0.4508, allocations: 0.6413 MB / 0.4921 GB, free: 9.852 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.387e-05/0.4509, allocations: 8.422 kB / 0.4921 GB, free: 9.844 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001028/0.4519, allocations: 445.5 kB / 0.4925 GB, free: 9.383 MB / 378.7 MB Notification: Performance of pre-optimization done (n=54): time 3.517e-06/0.452, allocations: 0 / 0.4925 GB, free: 9.383 MB / 378.7 MB Notification: Performance of matching and sorting (n=94): time 0.3247/0.7766, allocations: 16.53 MB / 0.5086 GB, free: 95.6 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.318e-05/0.7768, allocations: 139.9 kB / 0.5088 GB, free: 95.45 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006539/0.7774, allocations: 463.6 kB / 0.5092 GB, free: 95.33 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002008/0.7776, allocations: 46.95 kB / 0.5093 GB, free: 95.3 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002472/0.7779, allocations: 389.1 kB / 0.5096 GB, free: 95.13 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002602/0.7782, allocations: 315.5 kB / 0.5099 GB, free: 94.96 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.009e-05/0.7782, allocations: 20.97 kB / 0.51 GB, free: 94.96 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.7784, allocations: 385 kB / 0.5103 GB, free: 94.64 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001839/0.7802, allocations: 0.7988 MB / 0.5111 GB, free: 94.62 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001904/0.7821, allocations: 1.021 MB / 0.5121 GB, free: 94.36 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001858/0.784, allocations: 0.8811 MB / 0.513 GB, free: 94.25 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.804e-06/0.784, allocations: 3.531 kB / 0.513 GB, free: 94.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02229/0.8063, allocations: 5.63 MB / 0.5185 GB, free: 92.7 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.168e-05/0.8064, allocations: 67.11 kB / 0.5185 GB, free: 92.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.157e-05/0.8065, allocations: 4 kB / 0.5185 GB, free: 92.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03492/0.8414, allocations: 7.325 MB / 0.5257 GB, free: 85.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007772/0.8422, allocations: 183.3 kB / 0.5259 GB, free: 85.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005536/0.8478, allocations: 3.073 MB / 0.5289 GB, free: 82.56 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001882/0.8497, allocations: 223.8 kB / 0.5291 GB, free: 82.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001017/0.8498, allocations: 47.97 kB / 0.5291 GB, free: 82.29 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 50 * 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.0004744/0.8503, allocations: 228.6 kB / 0.5293 GB, free: 82.06 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001363/0.8504, allocations: 79.06 kB / 0.5294 GB, free: 81.98 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02209/0.8725, allocations: 5.468 MB / 0.5347 GB, free: 76.52 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.178e-05/0.8726, allocations: 12 kB / 0.5348 GB, free: 76.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.291e-05/0.8726, allocations: 0 / 0.5348 GB, free: 76.5 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.717e-05/0.8727, allocations: 3.984 kB / 0.5348 GB, free: 76.5 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001543/0.8742, allocations: 1.106 MB / 0.5358 GB, free: 75.37 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.161e-06/0.8742, allocations: 4 kB / 0.5358 GB, free: 75.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005356/0.8748, allocations: 131.8 kB / 0.536 GB, free: 75.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03305/0.9078, allocations: 7.285 MB / 0.5431 GB, free: 67.95 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002638/0.9081, allocations: 35.92 kB / 0.5431 GB, free: 67.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005793/0.9139, allocations: 3.214 MB / 0.5463 GB, free: 64.64 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.914, allocations: 0 / 0.5463 GB, free: 64.64 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02336/0.9373, allocations: 6.43 MB / 0.5525 GB, free: 58.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003363/0.9377, allocations: 155.6 kB / 0.5527 GB, free: 58.03 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001614/0.9379, allocations: 20 kB / 0.5527 GB, free: 58.01 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001317/0.9392, allocations: 207.8 kB / 0.5529 GB, free: 57.81 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002443/0.9395, allocations: 108.8 kB / 0.553 GB, free: 57.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.089e-05/0.9396, allocations: 31.98 kB / 0.553 GB, free: 57.67 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003727/0.94, allocations: 350.8 kB / 0.5534 GB, free: 57.33 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.94, allocations: 0 / 0.5534 GB, free: 57.33 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007884/0.9408, allocations: 267.1 kB / 0.5536 GB, free: 57.07 MB / 378.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) * Number of clocked states: 0 () * 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.0241/0.9649, allocations: 7.012 MB / 0.5605 GB, free: 50.04 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005574/0.9705, allocations: 2.194 MB / 0.5626 GB, free: 47.82 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/0.9706, allocations: 0 / 0.5626 GB, free: 47.82 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00418/0.9747, allocations: 1.288 MB / 0.5639 GB, free: 46.54 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007952/0.9756, allocations: 110.5 kB / 0.564 GB, free: 46.44 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03149/1.007, allocations: 14.29 MB / 0.5779 GB, free: 31.96 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003369/1.007, allocations: 0.9704 MB / 0.5789 GB, free: 30.96 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003744/1.008, allocations: 57.23 kB / 0.5789 GB, free: 30.9 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002839/1.008, allocations: 271.3 kB / 0.5792 GB, free: 30.64 MB / 378.7 MB Notification: Performance of SimCode: time 1.573e-06/1.008, allocations: 0 / 0.5792 GB, free: 30.64 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04452/1.053, allocations: 26.36 MB / 0.6049 GB, free: 4.609 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002386/1.053, allocations: 209.8 kB / 0.6051 GB, free: 4.375 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.077/4.13, allocations: 3.938 kB / 0.6051 GB, free: 4.371 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat does not exist to compare? outputFormat=mat