Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001189/0.001189, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.287/1.287, allocations: 225.4 MB / 240.1 MB, free: 15.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008063/0.0008061, allocations: 93 kB / 292.1 MB, free: 5.98 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.885e-05/2.887e-05, allocations: 7.984 kB / 350.6 MB, free: 2.457 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08833/0.08837, allocations: 51.49 MB / 402.1 MB, free: 14.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3172/0.4056, allocations: 83.77 MB / 485.9 MB, free: 5.723 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002007/0.4059, allocations: 70.27 kB / 486 MB, free: 5.691 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03423/0.4401, allocations: 12.75 MB / 498.7 MB, free: 10.6 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.4402, allocations: 0 / 498.7 MB, free: 10.6 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.275e-05/0.4402, allocations: 20 kB / 498.7 MB, free: 10.58 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.002267/0.4425, allocations: 1.078 MB / 499.8 MB, free: 9.449 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.4425, allocations: 8.031 kB / 499.8 MB, free: 9.441 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001368/0.4427, allocations: 106.5 kB / 499.9 MB, free: 9.328 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001485/0.4428, allocations: 91.83 kB / 0.4883 GB, free: 9.238 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008364/0.4437, allocations: 0.5072 MB / 0.4888 GB, free: 8.691 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.97e-05/0.4437, allocations: 49.3 kB / 0.4888 GB, free: 8.645 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001076/0.4438, allocations: 64 kB / 0.4889 GB, free: 8.582 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009883/0.4448, allocations: 0.5649 MB / 0.4894 GB, free: 8.012 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.729e-05/0.4449, allocations: 0 / 0.4894 GB, free: 8.012 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.798e-05/0.4449, allocations: 28 kB / 0.4895 GB, free: 7.984 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.451e-05/0.445, allocations: 16 kB / 0.4895 GB, free: 7.969 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009578/0.4459, allocations: 0.5441 MB / 0.49 GB, free: 7.422 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003913/0.4498, allocations: 2.346 MB / 0.4923 GB, free: 4.953 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007773/0.4506, allocations: 460.9 kB / 0.4927 GB, free: 4.492 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003808/0.451, allocations: 262.8 kB / 0.493 GB, free: 4.234 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.33e-05/0.4511, allocations: 12.41 kB / 0.493 GB, free: 4.223 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005522/0.4517, allocations: 349.6 kB / 0.4933 GB, free: 3.855 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 2.014e-06/0.4517, allocations: 0 / 0.4933 GB, free: 3.855 MB / 362.7 MB Notification: Performance of matching and sorting (n=94): time 0.07697/0.5286, allocations: 13.47 MB / 0.5065 GB, free: 6.312 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001475/0.5288, allocations: 145.3 kB / 0.5066 GB, free: 6.141 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009797/0.5298, allocations: 460.9 kB / 0.5071 GB, free: 5.688 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002615/0.5301, allocations: 49.7 kB / 0.5071 GB, free: 5.633 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004313/0.5306, allocations: 391.7 kB / 0.5075 GB, free: 5.238 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004303/0.531, allocations: 307.5 kB / 0.5078 GB, free: 4.934 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001248/0.5311, allocations: 23.94 kB / 0.5078 GB, free: 4.91 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002646/0.5314, allocations: 390.7 kB / 0.5082 GB, free: 4.52 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001363/0.5328, allocations: 478.3 kB / 0.5086 GB, free: 4.051 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001663/0.5345, allocations: 0.6939 MB / 0.5093 GB, free: 3.266 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001501/0.536, allocations: 0.547 MB / 0.5098 GB, free: 2.711 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.536, allocations: 0 / 0.5098 GB, free: 2.711 MB / 378.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02901/0.565, allocations: 4.844 MB / 0.5146 GB, free: 13.84 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001112/0.5652, allocations: 64.34 kB / 0.5146 GB, free: 13.76 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.128e-05/0.5652, allocations: 8 kB / 0.5146 GB, free: 13.75 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04987/0.6151, allocations: 6.937 MB / 0.5214 GB, free: 6.805 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001173/0.6163, allocations: 179.7 kB / 0.5216 GB, free: 6.629 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006489/0.6228, allocations: 2.674 MB / 0.5242 GB, free: 3.902 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002306/0.6252, allocations: 231.8 kB / 0.5244 GB, free: 3.676 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001687/0.6253, allocations: 47.97 kB / 0.5245 GB, free: 3.629 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.00039/0.6257, allocations: 156.8 kB / 0.5246 GB, free: 3.469 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000217/0.626, allocations: 87.05 kB / 0.5247 GB, free: 3.383 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03056/0.6565, allocations: 4.675 MB / 0.5293 GB, free: 14.69 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.463e-05/0.6566, allocations: 12.55 kB / 0.5293 GB, free: 14.68 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/0.6566, allocations: 256 / 0.5293 GB, free: 14.68 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.798e-05/0.6567, allocations: 3.984 kB / 0.5293 GB, free: 14.67 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002412/0.6591, allocations: 1.124 MB / 0.5304 GB, free: 13.51 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.264e-06/0.6591, allocations: 0 / 0.5304 GB, free: 13.51 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008765/0.66, allocations: 127.9 kB / 0.5305 GB, free: 13.38 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0508/0.7108, allocations: 6.89 MB / 0.5372 GB, free: 6.48 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002905/0.7112, allocations: 31.91 kB / 0.5373 GB, free: 6.449 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007209/0.7184, allocations: 2.682 MB / 0.5399 GB, free: 3.711 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.7184, allocations: 0 / 0.5399 GB, free: 3.711 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03059/0.749, allocations: 5.321 MB / 0.5451 GB, free: 14.36 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003823/0.7494, allocations: 144.2 kB / 0.5452 GB, free: 14.2 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000258/0.7497, allocations: 20 kB / 0.5452 GB, free: 14.18 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002231/0.752, allocations: 211.8 kB / 0.5454 GB, free: 13.97 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000397/0.7524, allocations: 104.6 kB / 0.5455 GB, free: 13.87 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001564/0.7526, allocations: 27.97 kB / 0.5456 GB, free: 13.84 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006908/0.7533, allocations: 345.6 kB / 0.5459 GB, free: 13.51 MB / 426.7 MB Notification: Performance of sort global known variables: time 3e-07/0.7533, allocations: 0 / 0.5459 GB, free: 13.51 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001361/0.7547, allocations: 275.9 kB / 0.5462 GB, free: 13.24 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.03461/0.7893, allocations: 5.898 MB / 0.5519 GB, free: 7.293 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005963/0.7953, allocations: 1.527 MB / 0.5534 GB, free: 5.746 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.382e-06/0.7953, allocations: 5.375 kB / 0.5534 GB, free: 5.742 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003737/0.7991, allocations: 0.8174 MB / 0.5542 GB, free: 4.922 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001027/0.8001, allocations: 108.5 kB / 0.5543 GB, free: 4.82 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00455/0.8047, allocations: 1.385 MB / 0.5557 GB, free: 3.395 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006508/0.8054, allocations: 0.9666 MB / 0.5566 GB, free: 2.402 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0005025/0.8059, allocations: 64.05 kB / 0.5567 GB, free: 2.34 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005218/0.8064, allocations: 271.3 kB / 0.5569 GB, free: 2.074 MB / 426.7 MB Notification: Performance of SimCode: time 8.91e-07/0.8065, allocations: 4 kB / 0.5569 GB, free: 2.07 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2741/1.081, allocations: 27.51 MB / 0.5838 GB, free: 124.5 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001415/1.081, allocations: 179.8 kB / 0.584 GB, free: 124.3 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.834/3.914, allocations: 7.062 kB / 0.584 GB, free: 124.3 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat does not exist to compare? outputFormat=mat