Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_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.HeatingNPN_NORGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001477/0.001477, allocations: 177.1 kB / 13.64 MB, free: 1.676 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.281/1.281, allocations: 221.4 MB / 235.5 MB, free: 2.953 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.0008686/0.0008687, allocations: 83.88 kB / 286.5 MB, free: 260 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.455e-05/2.458e-05, allocations: 4 kB / 343.9 MB, free: 4.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08615/0.08619, allocations: 50.43 MB / 394.4 MB, free: 1.781 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3113/0.3975, allocations: 82.98 MB / 477.3 MB, free: 4.516 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001854/0.3977, allocations: 63.97 kB / 477.4 MB, free: 4.453 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0345/0.4322, allocations: 12.76 MB / 490.2 MB, free: 7.641 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.4323, allocations: 0 / 490.2 MB, free: 7.641 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.882e-05/0.4323, allocations: 16 kB / 490.2 MB, free: 7.625 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.001953/0.4343, allocations: 1.07 MB / 491.2 MB, free: 6.492 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.378e-05/0.4343, allocations: 11.97 kB / 491.3 MB, free: 6.48 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001167/0.4344, allocations: 106.5 kB / 491.4 MB, free: 6.367 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001409/0.4346, allocations: 90.97 kB / 491.4 MB, free: 6.277 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007915/0.4354, allocations: 0.5037 MB / 491.9 MB, free: 5.734 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.622e-05/0.4354, allocations: 45.31 kB / 492 MB, free: 5.691 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.809e-05/0.4355, allocations: 67.95 kB / 492.1 MB, free: 5.625 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009451/0.4365, allocations: 0.5688 MB / 492.6 MB, free: 5.047 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.603e-05/0.4365, allocations: 4 kB / 492.6 MB, free: 5.043 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.78e-05/0.4366, allocations: 24 kB / 492.7 MB, free: 5.02 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.381e-05/0.4366, allocations: 16 kB / 492.7 MB, free: 5.004 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008816/0.4375, allocations: 0.5402 MB / 493.2 MB, free: 4.465 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003522/0.441, allocations: 2.352 MB / 495.6 MB, free: 1.984 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007121/0.4417, allocations: 470.7 kB / 496 MB, free: 1.52 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003648/0.4421, allocations: 250.2 kB / 496.3 MB, free: 1.273 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.594e-05/0.4422, allocations: 16.42 kB / 496.3 MB, free: 1.258 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005111/0.4427, allocations: 341.7 kB / 496.6 MB, free: 0.8945 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 1.884e-06/0.4427, allocations: 0 / 496.6 MB, free: 0.8945 MB / 362.7 MB Notification: Performance of matching and sorting (n=94): time 0.05537/0.4981, allocations: 13.48 MB / 0.4981 GB, free: 3.328 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.973e-05/0.4982, allocations: 149.3 kB / 0.4983 GB, free: 3.152 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006453/0.4989, allocations: 449 kB / 0.4987 GB, free: 2.711 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002199/0.4991, allocations: 41.7 kB / 0.4988 GB, free: 2.664 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003102/0.4994, allocations: 395.7 kB / 0.4991 GB, free: 2.27 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002976/0.4997, allocations: 315.5 kB / 0.4994 GB, free: 1.957 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.501e-05/0.4998, allocations: 24 kB / 0.4995 GB, free: 1.934 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.00019/0.5, allocations: 382.8 kB / 0.4998 GB, free: 1.551 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008064/0.5008, allocations: 482.2 kB / 0.5003 GB, free: 1.078 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009141/0.5017, allocations: 0.69 MB / 0.501 GB, free: 312 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008836/0.5026, allocations: 0.5588 MB / 0.5015 GB, free: 15.73 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.5026, allocations: 0 / 0.5015 GB, free: 15.73 MB / 394.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.0201/0.5227, allocations: 4.844 MB / 0.5062 GB, free: 10.86 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.555e-05/0.5228, allocations: 63.41 kB / 0.5063 GB, free: 10.79 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.572e-05/0.5229, allocations: 7.953 kB / 0.5063 GB, free: 10.78 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03224/0.5551, allocations: 6.946 MB / 0.5131 GB, free: 3.816 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007503/0.5559, allocations: 183.8 kB / 0.5133 GB, free: 3.637 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005179/0.5611, allocations: 2.825 MB / 0.516 GB, free: 0.7578 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001655/0.5627, allocations: 227.7 kB / 0.5162 GB, free: 0.5352 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001101/0.5629, allocations: 51.91 kB / 0.5163 GB, free: 496 kB / 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.0002609/0.5631, allocations: 163.3 kB / 0.5164 GB, free: 328 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001405/0.5633, allocations: 79.06 kB / 0.5165 GB, free: 248 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01954/0.5828, allocations: 4.692 MB / 0.5211 GB, free: 11.52 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.027e-05/0.5829, allocations: 8 kB / 0.5211 GB, free: 11.52 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.054e-05/0.5829, allocations: 4 kB / 0.5211 GB, free: 11.51 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.523e-05/0.5829, allocations: 3.984 kB / 0.5211 GB, free: 11.51 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001577/0.5845, allocations: 1.11 MB / 0.5222 GB, free: 10.35 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.5845, allocations: 4 kB / 0.5222 GB, free: 10.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005837/0.5851, allocations: 119.9 kB / 0.5223 GB, free: 10.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03193/0.6171, allocations: 6.899 MB / 0.5291 GB, free: 3.312 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002294/0.6173, allocations: 31.91 kB / 0.5291 GB, free: 3.281 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005156/0.6225, allocations: 2.827 MB / 0.5318 GB, free: 408 kB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.6225, allocations: 256 / 0.5318 GB, free: 408 kB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02179/0.6443, allocations: 5.321 MB / 0.537 GB, free: 11.05 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002975/0.6447, allocations: 144.2 kB / 0.5372 GB, free: 10.89 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000162/0.6448, allocations: 23.95 kB / 0.5372 GB, free: 10.87 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001506/0.6464, allocations: 215.8 kB / 0.5374 GB, free: 10.66 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002828/0.6466, allocations: 104.6 kB / 0.5375 GB, free: 10.55 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.525e-05/0.6468, allocations: 27.98 kB / 0.5375 GB, free: 10.53 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004751/0.6472, allocations: 349.6 kB / 0.5379 GB, free: 10.19 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.6472, allocations: 0 / 0.5379 GB, free: 10.19 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007812/0.648, allocations: 271.9 kB / 0.5381 GB, free: 9.922 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.02133/0.6694, allocations: 5.905 MB / 0.5439 GB, free: 3.969 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004401/0.6738, allocations: 1.672 MB / 0.5455 GB, free: 2.273 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.6738, allocations: 0 / 0.5455 GB, free: 2.273 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003166/0.677, allocations: 0.9699 MB / 0.5465 GB, free: 1.301 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006004/0.6776, allocations: 113.9 kB / 0.5466 GB, free: 1.191 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1743/0.8519, allocations: 1.368 MB / 0.5479 GB, free: 134.8 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004196/0.8524, allocations: 0.9651 MB / 0.5489 GB, free: 134.1 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0003617/0.8527, allocations: 59.16 kB / 0.5489 GB, free: 134.1 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000393/0.8531, allocations: 272.4 kB / 0.5492 GB, free: 134.1 MB / 426.7 MB Notification: Performance of SimCode: time 8.11e-07/0.8531, allocations: 0 / 0.5492 GB, free: 134.1 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05059/0.9037, allocations: 27 MB / 0.5755 GB, free: 127.6 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00015/0.9039, allocations: 188.2 kB / 0.5757 GB, free: 127.4 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.803/3.706, allocations: 7.938 kB / 0.5757 GB, free: 127.3 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat does not exist to compare? outputFormat=mat