Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_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.HeatingNPN_NORGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingNPN_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.002172/0.002172, allocations: 196.1 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.58/1.58, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008949/0.0008952, allocations: 89.39 kB / 292.1 MB, free: 5.945 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.003e-05/3.013e-05, allocations: 4 kB / 350.6 MB, free: 2.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1001, allocations: 51.48 MB / 402.1 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3276/0.4277, allocations: 83.78 MB / 485.9 MB, free: 5.707 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002355/0.428, allocations: 72.19 kB / 486 MB, free: 5.672 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03538/0.4634, allocations: 12.78 MB / 498.7 MB, free: 10.54 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.4635, allocations: 3.938 kB / 498.7 MB, free: 10.54 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.242e-05/0.4635, allocations: 20 kB / 498.8 MB, free: 10.52 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.002389/0.4659, allocations: 1.065 MB / 499.8 MB, free: 9.398 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.633e-05/0.466, allocations: 12.03 kB / 499.8 MB, free: 9.387 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001576/0.4662, allocations: 106.5 kB / 499.9 MB, free: 9.273 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001616/0.4663, allocations: 95.83 kB / 0.4883 GB, free: 9.18 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008907/0.4672, allocations: 0.5062 MB / 0.4888 GB, free: 8.637 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.8e-05/0.4673, allocations: 49.31 kB / 0.4889 GB, free: 8.59 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001144/0.4674, allocations: 63.98 kB / 0.4889 GB, free: 8.527 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001075/0.4685, allocations: 0.5688 MB / 0.4895 GB, free: 7.953 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.015e-05/0.4685, allocations: 0 / 0.4895 GB, free: 7.953 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.595e-05/0.4686, allocations: 28 kB / 0.4895 GB, free: 7.926 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.469e-05/0.4686, allocations: 12 kB / 0.4895 GB, free: 7.914 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009644/0.4696, allocations: 0.5479 MB / 0.4901 GB, free: 7.363 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003951/0.4735, allocations: 2.342 MB / 0.4923 GB, free: 4.898 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008294/0.4744, allocations: 468 kB / 0.4928 GB, free: 4.434 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003802/0.4748, allocations: 258.8 kB / 0.493 GB, free: 4.18 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.204e-05/0.4748, allocations: 8.422 kB / 0.493 GB, free: 4.172 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005691/0.4754, allocations: 357.6 kB / 0.4934 GB, free: 3.797 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 2.044e-06/0.4754, allocations: 0 / 0.4934 GB, free: 3.797 MB / 362.7 MB Notification: Performance of matching and sorting (n=94): time 0.06051/0.5359, allocations: 13.48 MB / 0.5065 GB, free: 6.238 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001066/0.5361, allocations: 157.2 kB / 0.5067 GB, free: 6.055 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007158/0.5368, allocations: 449 kB / 0.5071 GB, free: 5.617 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002254/0.5371, allocations: 41.7 kB / 0.5072 GB, free: 5.57 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000302/0.5374, allocations: 395.7 kB / 0.5075 GB, free: 5.172 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002859/0.5377, allocations: 316.1 kB / 0.5078 GB, free: 4.859 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.626e-05/0.5378, allocations: 20 kB / 0.5079 GB, free: 4.84 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.5379, allocations: 386.7 kB / 0.5082 GB, free: 4.453 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008225/0.5387, allocations: 474.3 kB / 0.5087 GB, free: 3.988 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009502/0.5397, allocations: 0.7017 MB / 0.5094 GB, free: 3.195 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008857/0.5406, allocations: 0.5509 MB / 0.5099 GB, free: 2.637 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.5406, allocations: 0 / 0.5099 GB, free: 2.637 MB / 378.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02169/0.5623, allocations: 4.857 MB / 0.5146 GB, free: 13.75 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.135e-05/0.5625, allocations: 59.41 kB / 0.5147 GB, free: 13.68 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.916e-05/0.5625, allocations: 8 kB / 0.5147 GB, free: 13.67 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03247/0.595, allocations: 6.941 MB / 0.5215 GB, free: 6.719 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000761/0.5958, allocations: 179.7 kB / 0.5217 GB, free: 6.543 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005272/0.601, allocations: 2.829 MB / 0.5244 GB, free: 3.66 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001678/0.6027, allocations: 223.8 kB / 0.5246 GB, free: 3.441 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001107/0.6029, allocations: 51.97 kB / 0.5247 GB, free: 3.391 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.0002509/0.6031, allocations: 160.8 kB / 0.5248 GB, free: 3.227 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001384/0.6033, allocations: 79.06 kB / 0.5249 GB, free: 3.148 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02107/0.6244, allocations: 4.683 MB / 0.5295 GB, free: 14.44 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.272e-05/0.6244, allocations: 19.94 kB / 0.5295 GB, free: 14.42 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.966e-06/0.6244, allocations: 0 / 0.5295 GB, free: 14.42 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.646e-05/0.6245, allocations: 3.984 kB / 0.5295 GB, free: 14.42 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001619/0.6261, allocations: 1.12 MB / 0.5306 GB, free: 13.26 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.6261, allocations: 0 / 0.5306 GB, free: 13.26 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005678/0.6267, allocations: 123.9 kB / 0.5307 GB, free: 13.14 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03223/0.6589, allocations: 6.903 MB / 0.5375 GB, free: 6.219 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002099/0.6592, allocations: 34.17 kB / 0.5375 GB, free: 6.188 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005266/0.6644, allocations: 2.83 MB / 0.5403 GB, free: 3.301 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.6645, allocations: 5.578 kB / 0.5403 GB, free: 3.297 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02096/0.6854, allocations: 5.325 MB / 0.5455 GB, free: 13.94 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002146/0.6857, allocations: 144.2 kB / 0.5456 GB, free: 13.78 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001457/0.6858, allocations: 16 kB / 0.5456 GB, free: 13.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001436/0.6873, allocations: 215.8 kB / 0.5458 GB, free: 13.55 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002401/0.6875, allocations: 96.62 kB / 0.5459 GB, free: 13.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.462e-05/0.6876, allocations: 35.97 kB / 0.546 GB, free: 13.43 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003766/0.688, allocations: 345.6 kB / 0.5463 GB, free: 13.09 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.688, allocations: 3.938 kB / 0.5463 GB, free: 13.09 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007098/0.6887, allocations: 267.9 kB / 0.5465 GB, free: 12.82 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.02127/0.71, allocations: 5.898 MB / 0.5523 GB, free: 6.879 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004297/0.7144, allocations: 1.673 MB / 0.5539 GB, free: 5.188 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.7144, allocations: 384 / 0.5539 GB, free: 5.188 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00315/0.7175, allocations: 0.9696 MB / 0.5549 GB, free: 4.215 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006116/0.7182, allocations: 110 kB / 0.555 GB, free: 4.113 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002931/0.7211, allocations: 1.377 MB / 0.5563 GB, free: 2.695 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004198/0.7215, allocations: 0.9666 MB / 0.5573 GB, free: 1.703 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0002719/0.7218, allocations: 54.28 kB / 0.5573 GB, free: 1.648 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000314/0.7221, allocations: 275.3 kB / 0.5576 GB, free: 1.379 MB / 426.7 MB Notification: Performance of SimCode: time 4.51e-07/0.7221, allocations: 0 / 0.5576 GB, free: 1.379 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2444/0.9666, allocations: 26.96 MB / 0.5839 GB, free: 124.6 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000161/0.9668, allocations: 188.9 kB / 0.5841 GB, free: 124.4 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.793/3.76, allocations: 4 kB / 0.5841 GB, free: 124.4 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat does not exist to compare? outputFormat=mat