Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.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.HeatingNPN_OrGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate",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.001478/0.001478, allocations: 181.3 kB / 17.01 MB, free: 5.125 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.371/1.371, allocations: 205.4 MB / 223.1 MB, free: 9.117 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.0008465/0.0008463, allocations: 88.17 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002274/0.0002274, allocations: 4 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2493/0.2496, allocations: 47.58 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1051/0.3547, allocations: 81.15 MB / 457.1 MB, free: 15.49 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002691/0.355, allocations: 71.95 kB / 457.1 MB, free: 15.42 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0383/0.3933, allocations: 12.14 MB / 469.3 MB, free: 3.227 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.895e-06/0.3934, allocations: 0 / 469.3 MB, free: 3.227 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.533e-05/0.3934, allocations: 12 kB / 469.3 MB, free: 3.215 MB / 346.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.003397/0.3968, allocations: 1.135 MB / 470.4 MB, free: 2.016 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.297e-05/0.3969, allocations: 8.031 kB / 470.4 MB, free: 2.008 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002934/0.3972, allocations: 106.5 kB / 470.5 MB, free: 1.895 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003119/0.3975, allocations: 83.06 kB / 470.6 MB, free: 1.812 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001191/0.3987, allocations: 0.4937 MB / 471.1 MB, free: 1.273 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.809e-05/0.3988, allocations: 49.3 kB / 471.1 MB, free: 1.227 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001398/0.3989, allocations: 60 kB / 471.2 MB, free: 1.168 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001584/0.4005, allocations: 0.6545 MB / 471.9 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.11e-05/0.4006, allocations: 0 / 471.9 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.359e-05/0.4006, allocations: 28 kB / 471.9 MB, free: 492 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.517e-05/0.4007, allocations: 16 kB / 471.9 MB, free: 476 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001786/0.4025, allocations: 0.7312 MB / 472.6 MB, free: 15.73 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004715/0.4072, allocations: 2.294 MB / 474.9 MB, free: 13.31 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001547/0.4088, allocations: 0.6364 MB / 475.6 MB, free: 12.67 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.867e-05/0.4089, allocations: 8.422 kB / 475.6 MB, free: 12.66 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00107/0.41, allocations: 453.4 kB / 476 MB, free: 12.2 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 2.715e-06/0.41, allocations: 7.875 kB / 476 MB, free: 12.19 MB / 362.7 MB Notification: Performance of matching and sorting (n=94): time 0.07177/0.4818, allocations: 16.55 MB / 492.6 MB, free: 11.53 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001162/0.4819, allocations: 145.5 kB / 492.7 MB, free: 11.36 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006446/0.4826, allocations: 430 kB / 493.1 MB, free: 10.93 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002874/0.4829, allocations: 45.7 kB / 493.2 MB, free: 10.88 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003581/0.4832, allocations: 367.9 kB / 493.5 MB, free: 10.51 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003431/0.4836, allocations: 307.5 kB / 493.8 MB, free: 10.21 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.391e-05/0.4837, allocations: 24 kB / 493.9 MB, free: 10.18 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.00019/0.4839, allocations: 382.8 kB / 494.2 MB, free: 9.801 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002094/0.486, allocations: 0.7905 MB / 495 MB, free: 9.012 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002119/0.4881, allocations: 1.002 MB / 496 MB, free: 7.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002117/0.4903, allocations: 0.8691 MB / 496.9 MB, free: 7.051 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.65e-06/0.4903, allocations: 0 / 496.9 MB, free: 7.051 MB / 378.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02475/0.515, allocations: 5.601 MB / 0.4907 GB, free: 1.422 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001466/0.5152, allocations: 63.39 kB / 0.4908 GB, free: 1.348 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.79e-05/0.5153, allocations: 11.95 kB / 0.4908 GB, free: 1.336 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2418/0.7571, allocations: 7.327 MB / 0.4979 GB, free: 106.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009236/0.7581, allocations: 177.7 kB / 0.4981 GB, free: 106.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006007/0.7641, allocations: 3.075 MB / 0.5011 GB, free: 105.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001965/0.7661, allocations: 220.9 kB / 0.5013 GB, free: 105.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000139/0.7663, allocations: 44.83 kB / 0.5014 GB, free: 105.7 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 () * Number of clocked 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.0005468/0.7668, allocations: 217.9 kB / 0.5016 GB, free: 105.6 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00016/0.767, allocations: 80.31 kB / 0.5017 GB, free: 105.6 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02278/0.7898, allocations: 5.458 MB / 0.507 GB, free: 105.4 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.553e-05/0.7899, allocations: 12.53 kB / 0.507 GB, free: 105.4 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.275e-05/0.7899, allocations: 0 / 0.507 GB, free: 105.4 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.614e-05/0.7899, allocations: 5.141 kB / 0.507 GB, free: 105.4 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001582/0.7915, allocations: 1.085 MB / 0.5081 GB, free: 104.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.845e-06/0.7916, allocations: 0 / 0.5081 GB, free: 104.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005418/0.7921, allocations: 128.2 kB / 0.5082 GB, free: 104.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03295/0.8251, allocations: 7.28 MB / 0.5153 GB, free: 100.6 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002988/0.8254, allocations: 31.97 kB / 0.5153 GB, free: 100.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005712/0.8311, allocations: 3.247 MB / 0.5185 GB, free: 97.33 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.8312, allocations: 0 / 0.5185 GB, free: 97.33 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02357/0.8547, allocations: 6.418 MB / 0.5248 GB, free: 90.94 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002484/0.855, allocations: 136.2 kB / 0.5249 GB, free: 90.79 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001675/0.8552, allocations: 23.98 kB / 0.5249 GB, free: 90.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001322/0.8565, allocations: 203.9 kB / 0.5251 GB, free: 90.57 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002297/0.8568, allocations: 113.7 kB / 0.5252 GB, free: 90.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.166e-05/0.8569, allocations: 27.98 kB / 0.5252 GB, free: 90.43 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003216/0.8572, allocations: 330.9 kB / 0.5256 GB, free: 90.11 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.172e-06/0.8572, allocations: 0 / 0.5256 GB, free: 90.11 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007004/0.8579, allocations: 270.6 kB / 0.5258 GB, free: 89.86 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.02348/0.8814, allocations: 7.011 MB / 0.5327 GB, free: 82.84 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005243/0.8867, allocations: 2.182 MB / 0.5348 GB, free: 80.64 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.495e-06/0.8867, allocations: 0 / 0.5348 GB, free: 80.64 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003889/0.8906, allocations: 1.303 MB / 0.5361 GB, free: 79.34 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006699/0.8913, allocations: 106.3 kB / 0.5362 GB, free: 79.25 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02997/0.9213, allocations: 13.49 MB / 0.5493 GB, free: 65.63 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003028/0.9217, allocations: 0.9585 MB / 0.5503 GB, free: 64.64 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003223/0.922, allocations: 52.8 kB / 0.5503 GB, free: 64.59 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002627/0.9223, allocations: 263.3 kB / 0.5506 GB, free: 64.34 MB / 378.7 MB Notification: Performance of SimCode: time 1.193e-06/0.9223, allocations: 2.297 kB / 0.5506 GB, free: 64.34 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04183/0.9641, allocations: 26.03 MB / 0.576 GB, free: 38.36 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002051/0.9644, allocations: 205.1 kB / 0.5762 GB, free: 38.13 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.054/4.018, allocations: 4 kB / 0.5762 GB, free: 38.12 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat does not exist to compare? outputFormat=mat