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.0009478/0.0009478, allocations: 177.7 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.55/1.55, allocations: 205.3 MB / 214.4 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009289/0.000929, allocations: 88.11 kB / 262.5 MB, free: 1.676 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.019e-05/2.035e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0885/0.08855, allocations: 47.6 MB / 363.2 MB, free: 6.965 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3107/0.3993, allocations: 80.64 MB / 443.8 MB, free: 14.79 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002499/0.3996, allocations: 70.22 kB / 443.9 MB, free: 14.75 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03432/0.4339, allocations: 12.01 MB / 455.9 MB, free: 4.668 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.223e-06/0.434, allocations: 0 / 455.9 MB, free: 4.668 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.009e-05/0.434, allocations: 12 kB / 455.9 MB, free: 4.656 MB / 330.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.00219/0.4362, allocations: 1.05 MB / 457 MB, free: 3.598 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.4362, allocations: 8.031 kB / 457 MB, free: 3.59 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001645/0.4364, allocations: 90.97 kB / 457.1 MB, free: 3.5 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008526/0.4373, allocations: 495.3 kB / 457.5 MB, free: 3.039 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.832e-05/0.4373, allocations: 19.94 kB / 457.6 MB, free: 3.02 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.382e-05/0.4374, allocations: 39.75 kB / 457.6 MB, free: 2.984 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008617/0.4383, allocations: 0.4989 MB / 458.1 MB, free: 2.676 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008676/0.4392, allocations: 478.9 kB / 458.6 MB, free: 2.336 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.16e-05/0.4392, allocations: 0 / 458.6 MB, free: 2.336 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.603e-05/0.4393, allocations: 3.984 kB / 458.6 MB, free: 2.332 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.8e-05/0.4393, allocations: 16 kB / 458.6 MB, free: 2.316 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003671/0.443, allocations: 2.194 MB / 460.8 MB, free: 480 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000648/0.4436, allocations: 442 kB / 461.2 MB, free: 216 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003211/0.444, allocations: 234.9 kB / 461.4 MB, free: 76 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.342e-05/0.444, allocations: 15.81 kB / 461.4 MB, free: 64 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005716/0.4446, allocations: 327.7 kB / 461.8 MB, free: 15.8 MB / 346.7 MB Notification: Performance of pre-optimization done (n=54): time 1.823e-06/0.4446, allocations: 3.938 kB / 461.8 MB, free: 15.8 MB / 346.7 MB Notification: Performance of matching and sorting (n=94): time 0.05945/0.5041, allocations: 13.8 MB / 475.6 MB, free: 3.176 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.297e-05/0.5042, allocations: 145 kB / 475.7 MB, free: 3.008 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005908/0.5048, allocations: 392.6 kB / 476.1 MB, free: 2.699 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002284/0.5051, allocations: 29.45 kB / 476.1 MB, free: 2.668 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002766/0.5053, allocations: 362.4 kB / 476.5 MB, free: 2.402 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002927/0.5056, allocations: 300.3 kB / 476.8 MB, free: 2.141 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.557e-05/0.5057, allocations: 7.875 kB / 476.8 MB, free: 2.133 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001899/0.5059, allocations: 386.1 kB / 477.2 MB, free: 1.777 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006757/0.5066, allocations: 454.5 kB / 477.6 MB, free: 1.539 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007877/0.5074, allocations: 0.6389 MB / 478.2 MB, free: 1.051 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001864/0.5093, allocations: 0.6919 MB / 478.9 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.613e-06/0.5093, allocations: 4 kB / 478.9 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02152/0.5308, allocations: 4.878 MB / 483.8 MB, free: 12.28 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.898e-05/0.5309, allocations: 63.16 kB / 483.9 MB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.71e-05/0.531, allocations: 4.047 kB / 483.9 MB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02316/0.5541, allocations: 4.796 MB / 488.7 MB, free: 7.516 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008301/0.555, allocations: 187.7 kB / 488.9 MB, free: 7.332 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006931/0.562, allocations: 3.215 MB / 492.1 MB, free: 4.062 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002017/0.564, allocations: 215.7 kB / 492.3 MB, free: 3.852 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001446/0.5642, allocations: 43.97 kB / 492.3 MB, free: 3.809 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.T2.vbc:DUMMY_DER(fixed = false ) "Base-collector voltage" type: Real $DER.T1.ibe:DUMMY_DER(fixed = false ) "Base-emitter diode current" type: Real $DER.T1.vbc:DUMMY_DER(fixed = false ) "Base-collector voltage" type: Real $DER.T2.T_heatPort:DUMMY_DER(fixed = false ) "Temperature of heatPort" type: Real $DER.T1.T_heatPort:DUMMY_DER(fixed = false ) "Temperature of heatPort" type: Real 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 () * 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.0004272/0.5646, allocations: 128.5 kB / 492.4 MB, free: 3.676 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02039/0.585, allocations: 4.652 MB / 497.1 MB, free: 15 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003146/0.5854, allocations: 79.06 kB / 497.2 MB, free: 14.93 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02091/0.6063, allocations: 4.785 MB / 0.4902 GB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.112e-05/0.6064, allocations: 8 kB / 0.4902 GB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.233e-05/0.6064, allocations: 4.25 kB / 0.4902 GB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.452e-05/0.6065, allocations: 3.984 kB / 0.4902 GB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00207/0.6086, allocations: 1.013 MB / 0.4912 GB, free: 9.051 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.604e-06/0.6086, allocations: 0 / 0.4912 GB, free: 9.051 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006359/0.6092, allocations: 127.9 kB / 0.4913 GB, free: 8.926 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02276/0.632, allocations: 4.812 MB / 0.496 GB, free: 4.098 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002586/0.6323, allocations: 11.98 kB / 0.496 GB, free: 4.086 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006556/0.6389, allocations: 3.224 MB / 0.4992 GB, free: 0.8086 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/0.6389, allocations: 0 / 0.4992 GB, free: 0.8086 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02154/0.6605, allocations: 5.417 MB / 0.5045 GB, free: 11.36 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002713/0.6608, allocations: 136.2 kB / 0.5046 GB, free: 11.21 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002839/0.6611, allocations: 11.92 kB / 0.5046 GB, free: 11.2 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001537/0.6626, allocations: 199.8 kB / 0.5048 GB, free: 11 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002984/0.663, allocations: 104.6 kB / 0.5049 GB, free: 10.9 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001157/0.6631, allocations: 39.92 kB / 0.5049 GB, free: 10.86 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000433/0.6635, allocations: 291 kB / 0.5052 GB, free: 10.58 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6635, allocations: 0 / 0.5052 GB, free: 10.58 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009083/0.6645, allocations: 235.9 kB / 0.5054 GB, free: 10.35 MB / 394.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.02219/0.6867, allocations: 5.992 MB / 0.5113 GB, free: 4.32 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004545/0.6912, allocations: 1.6 MB / 0.5129 GB, free: 2.691 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.6913, allocations: 448 / 0.5129 GB, free: 2.691 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00316/0.6944, allocations: 0.9384 MB / 0.5138 GB, free: 1.75 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007746/0.6952, allocations: 82.05 kB / 0.5139 GB, free: 1.672 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003541/0.6988, allocations: 1.264 MB / 0.5151 GB, free: 372 kB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005704/0.6994, allocations: 0.9584 MB / 0.516 GB, free: 15.38 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003049/0.6997, allocations: 49.98 kB / 0.5161 GB, free: 15.32 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003333/0.7001, allocations: 263.3 kB / 0.5163 GB, free: 15.07 MB / 410.7 MB Notification: Performance of SimCode: time 6.31e-07/0.7001, allocations: 0 / 0.5163 GB, free: 15.07 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2486/0.9487, allocations: 24.93 MB / 0.5407 GB, free: 137.4 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002025/0.9489, allocations: 146.2 kB / 0.5408 GB, free: 137.3 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.826/3.775, allocations: 0 / 0.5408 GB, free: 137.3 MB / 410.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