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.001083/0.001083, allocations: 175.1 kB / 13.63 MB, free: 1.684 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.313/1.313, allocations: 221.3 MB / 235.5 MB, free: 2.961 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009263/0.0009267, allocations: 89.78 kB / 286.5 MB, free: 236 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.121e-05/4.123e-05, allocations: 4 kB / 343.9 MB, free: 4.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0967/0.09675, allocations: 50.42 MB / 394.3 MB, free: 1.754 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2878/0.3846, allocations: 82.97 MB / 477.3 MB, free: 4.484 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001962/0.3849, allocations: 71.95 kB / 477.4 MB, free: 4.414 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03585/0.4207, allocations: 12.72 MB / 490.1 MB, free: 7.645 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.4208, allocations: 0 / 490.1 MB, free: 7.645 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.016e-05/0.4208, allocations: 16 kB / 490.1 MB, free: 7.629 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.002224/0.423, allocations: 1.082 MB / 491.2 MB, free: 6.484 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.4231, allocations: 8.031 kB / 491.2 MB, free: 6.477 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001352/0.4232, allocations: 106.5 kB / 491.3 MB, free: 6.363 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001627/0.4234, allocations: 90.97 kB / 491.4 MB, free: 6.273 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008932/0.4243, allocations: 0.5075 MB / 491.9 MB, free: 5.727 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.825e-05/0.4244, allocations: 45.31 kB / 492 MB, free: 5.684 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001073/0.4245, allocations: 67.95 kB / 492 MB, free: 5.617 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001028/0.4255, allocations: 0.5649 MB / 492.6 MB, free: 5.043 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.135e-05/0.4255, allocations: 8 kB / 492.6 MB, free: 5.035 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.302e-05/0.4256, allocations: 24 kB / 492.6 MB, free: 5.012 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.631e-05/0.4256, allocations: 16 kB / 492.6 MB, free: 4.996 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009553/0.4266, allocations: 0.5441 MB / 493.2 MB, free: 4.453 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003909/0.4305, allocations: 2.348 MB / 495.5 MB, free: 1.977 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008061/0.4313, allocations: 465.4 kB / 496 MB, free: 1.516 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003854/0.4317, allocations: 254.2 kB / 496.2 MB, free: 1.266 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.333e-05/0.4318, allocations: 12.41 kB / 496.2 MB, free: 1.254 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005675/0.4324, allocations: 341.7 kB / 496.6 MB, free: 0.8906 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 2.865e-06/0.4324, allocations: 4 kB / 496.6 MB, free: 0.8867 MB / 362.7 MB Notification: Performance of matching and sorting (n=94): time 0.05836/0.4908, allocations: 13.47 MB / 0.4981 GB, free: 3.336 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001284/0.491, allocations: 149.2 kB / 0.4982 GB, free: 3.16 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006526/0.4916, allocations: 453 kB / 0.4987 GB, free: 2.711 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000232/0.4919, allocations: 41.7 kB / 0.4987 GB, free: 2.664 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002972/0.4922, allocations: 391.8 kB / 0.4991 GB, free: 2.273 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002817/0.4925, allocations: 311.5 kB / 0.4994 GB, free: 1.965 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.829e-05/0.4926, allocations: 20 kB / 0.4994 GB, free: 1.945 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001901/0.4927, allocations: 390.8 kB / 0.4998 GB, free: 1.555 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008643/0.4936, allocations: 478.2 kB / 0.5002 GB, free: 1.086 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001029/0.4947, allocations: 0.6978 MB / 0.5009 GB, free: 312 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009746/0.4956, allocations: 0.5549 MB / 0.5015 GB, free: 15.73 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.369e-06/0.4957, allocations: 0 / 0.5015 GB, free: 15.73 MB / 394.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02069/0.5164, allocations: 4.844 MB / 0.5062 GB, free: 10.86 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.278e-05/0.5165, allocations: 68.81 kB / 0.5063 GB, free: 10.79 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.388e-05/0.5165, allocations: 4 kB / 0.5063 GB, free: 10.78 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03358/0.5501, allocations: 6.931 MB / 0.513 GB, free: 3.836 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008173/0.551, allocations: 179.8 kB / 0.5132 GB, free: 3.66 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005392/0.5564, allocations: 2.669 MB / 0.5158 GB, free: 0.9375 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001818/0.5582, allocations: 227.8 kB / 0.516 GB, free: 0.7148 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001239/0.5584, allocations: 47.97 kB / 0.5161 GB, free: 0.668 MB / 394.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 () * 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.000279/0.5586, allocations: 160.8 kB / 0.5162 GB, free: 0.5039 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001461/0.5588, allocations: 79.06 kB / 0.5163 GB, free: 436 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0204/0.5792, allocations: 4.677 MB / 0.5209 GB, free: 11.73 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.238e-05/0.5793, allocations: 8 kB / 0.5209 GB, free: 11.72 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.398e-05/0.5793, allocations: 0 / 0.5209 GB, free: 11.72 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.069e-05/0.5793, allocations: 11.92 kB / 0.5209 GB, free: 11.71 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001799/0.5811, allocations: 1.122 MB / 0.522 GB, free: 10.54 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.656e-06/0.5812, allocations: 4 kB / 0.522 GB, free: 10.53 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000589/0.5818, allocations: 127.8 kB / 0.5221 GB, free: 10.41 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03246/0.6142, allocations: 6.888 MB / 0.5288 GB, free: 3.504 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002249/0.6145, allocations: 23.97 kB / 0.5288 GB, free: 3.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004447/0.619, allocations: 2.682 MB / 0.5315 GB, free: 0.7422 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.619, allocations: 0 / 0.5315 GB, free: 0.7422 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02135/0.6404, allocations: 5.321 MB / 0.5367 GB, free: 11.39 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002616/0.6407, allocations: 144.2 kB / 0.5368 GB, free: 11.23 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001571/0.6408, allocations: 19.95 kB / 0.5368 GB, free: 11.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001438/0.6423, allocations: 207.8 kB / 0.537 GB, free: 11.01 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000267/0.6426, allocations: 108.6 kB / 0.5371 GB, free: 10.91 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.48e-05/0.6427, allocations: 35.97 kB / 0.5372 GB, free: 10.87 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004573/0.6431, allocations: 345.6 kB / 0.5375 GB, free: 10.54 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.6431, allocations: 0 / 0.5375 GB, free: 10.54 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007949/0.6439, allocations: 268 kB / 0.5377 GB, free: 10.27 MB / 426.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.02138/0.6653, allocations: 5.903 MB / 0.5435 GB, free: 4.324 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003578/0.6689, allocations: 1.525 MB / 0.545 GB, free: 2.777 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/0.669, allocations: 0 / 0.545 GB, free: 2.777 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002252/0.6712, allocations: 0.833 MB / 0.5458 GB, free: 1.941 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006117/0.6719, allocations: 106 kB / 0.5459 GB, free: 1.84 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002738/0.6746, allocations: 1.401 MB / 0.5473 GB, free: 408 kB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1727/0.8473, allocations: 0.9605 MB / 0.5482 GB, free: 134.1 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.000405/0.8477, allocations: 61.39 kB / 0.5483 GB, free: 134.1 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004415/0.8482, allocations: 271.4 kB / 0.5485 GB, free: 134.1 MB / 426.7 MB Notification: Performance of SimCode: time 8.92e-07/0.8482, allocations: 0 / 0.5485 GB, free: 134.1 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04782/0.896, allocations: 27.55 MB / 0.5754 GB, free: 127.5 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001456/0.8962, allocations: 186.6 kB / 0.5756 GB, free: 127.2 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.943/3.839, allocations: 0 / 0.5756 GB, free: 127.2 MB / 426.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