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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001527/0.001527, allocations: 182.2 kB / 8.134 MB, free: 2.203 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.116/1.116, allocations: 221.4 MB / 229.9 MB, free: 3.012 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.0009364/0.0009364, allocations: 99.17 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09723/0.0982, allocations: 55.81 MB / 336.6 MB, free: 9.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1802/0.2785, allocations: 50.39 MB / 387 MB, free: 37.91 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08092/0.3594, allocations: 82.25 MB / 469.2 MB, free: 4.457 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001989/0.3597, allocations: 71.95 kB / 469.3 MB, free: 4.387 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: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.03785/0.3975, allocations: 13.6 MB / 482.9 MB, free: 6.727 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.3976, allocations: 8 kB / 482.9 MB, free: 6.719 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000186/0.3978, allocations: 95.47 kB / 483 MB, free: 6.625 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008612/0.3986, allocations: 0.5115 MB / 483.5 MB, free: 6.074 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.718e-05/0.3987, allocations: 23.91 kB / 483.6 MB, free: 6.051 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.23e-05/0.3988, allocations: 37.78 kB / 483.6 MB, free: 6.016 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009088/0.3997, allocations: 0.5103 MB / 484.1 MB, free: 5.5 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008704/0.4006, allocations: 497 kB / 484.6 MB, free: 5.008 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.965e-05/0.4006, allocations: 0 / 484.6 MB, free: 5.008 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.392e-05/0.4007, allocations: 0 / 484.6 MB, free: 5.008 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.699e-05/0.4007, allocations: 16 kB / 484.6 MB, free: 4.992 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00381/0.4045, allocations: 2.264 MB / 486.9 MB, free: 2.613 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006799/0.4052, allocations: 410.1 kB / 487.3 MB, free: 2.211 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003468/0.4055, allocations: 246.1 kB / 487.5 MB, free: 1.969 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.71e-05/0.4056, allocations: 8.422 kB / 487.5 MB, free: 1.961 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004308/0.406, allocations: 308.8 kB / 487.8 MB, free: 1.637 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 1.964e-06/0.4061, allocations: 0 / 487.8 MB, free: 1.637 MB / 362.7 MB Notification: Performance of matching and sorting (n=94): time 0.06702/0.4731, allocations: 14.29 MB / 0.4903 GB, free: 3.273 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.699e-05/0.4732, allocations: 141.3 kB / 0.4905 GB, free: 3.105 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005737/0.4738, allocations: 426.2 kB / 0.4909 GB, free: 2.68 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001349/0.4739, allocations: 29.7 kB / 0.4909 GB, free: 2.645 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001998/0.4741, allocations: 311.8 kB / 0.4912 GB, free: 2.332 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002749/0.4744, allocations: 299.5 kB / 0.4915 GB, free: 2.035 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.489e-05/0.4745, allocations: 0 / 0.4915 GB, free: 2.035 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.4747, allocations: 388.6 kB / 0.4919 GB, free: 1.648 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007831/0.4755, allocations: 454.3 kB / 0.4923 GB, free: 1.199 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009252/0.4764, allocations: 0.6763 MB / 0.493 GB, free: 452 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1005/0.5769, allocations: 0.71 MB / 0.4936 GB, free: 133.8 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.642e-06/0.577, allocations: 0 / 0.4936 GB, free: 133.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02265/0.5997, allocations: 5.011 MB / 0.4985 GB, free: 133.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.5997, allocations: 7.438 kB / 0.4985 GB, free: 133.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.833e-05/0.5997, allocations: 5.562 kB / 0.4986 GB, free: 133.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02415/0.6239, allocations: 4.949 MB / 0.5034 GB, free: 133.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007573/0.6247, allocations: 194.7 kB / 0.5036 GB, free: 133.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007584/0.6323, allocations: 3.45 MB / 0.5069 GB, free: 132.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002178/0.6345, allocations: 227.9 kB / 0.5072 GB, free: 132.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002602/0.6348, allocations: 48.16 kB / 0.5072 GB, free: 132.5 MB / 378.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: 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.0004291/0.6352, allocations: 133.8 kB / 0.5073 GB, free: 132.4 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001847/0.6354, allocations: 77.91 kB / 0.5074 GB, free: 132.4 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0227/0.6581, allocations: 4.922 MB / 0.5122 GB, free: 132.2 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.798e-05/0.6582, allocations: 11.31 kB / 0.5122 GB, free: 132.2 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.6582, allocations: 0 / 0.5122 GB, free: 132.2 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.748e-05/0.6582, allocations: 4.5 kB / 0.5122 GB, free: 132.2 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00148/0.6597, allocations: 0.9981 MB / 0.5132 GB, free: 132 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.533e-06/0.6597, allocations: 2.109 kB / 0.5132 GB, free: 132 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006524/0.6604, allocations: 139 kB / 0.5133 GB, free: 132 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02582/0.6862, allocations: 4.956 MB / 0.5182 GB, free: 131.4 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002063/0.6865, allocations: 11.36 kB / 0.5182 GB, free: 131.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006952/0.6934, allocations: 3.451 MB / 0.5216 GB, free: 129 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.6935, allocations: 0 / 0.5216 GB, free: 129 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02329/0.7168, allocations: 5.568 MB / 0.527 GB, free: 124.6 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02406/0.7409, allocations: 6.656 MB / 0.5335 GB, free: 118.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002729/0.7412, allocations: 144.2 kB / 0.5336 GB, free: 118 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003044/0.7415, allocations: 8 kB / 0.5336 GB, free: 118 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001652/0.7432, allocations: 215.8 kB / 0.5338 GB, free: 117.8 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002809/0.7435, allocations: 100.5 kB / 0.5339 GB, free: 117.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001203/0.7436, allocations: 35.97 kB / 0.534 GB, free: 117.6 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003835/0.744, allocations: 310.9 kB / 0.5343 GB, free: 117.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001485/0.7455, allocations: 236.3 kB / 0.5345 GB, free: 117.1 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) * 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.0002916/0.7458, allocations: 130.3 kB / 0.5346 GB, free: 117 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004247/0.75, allocations: 1.566 MB / 0.5361 GB, free: 115.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/0.7501, allocations: 4.188 kB / 0.5362 GB, free: 115.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003179/0.7533, allocations: 0.9497 MB / 0.5371 GB, free: 114.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006339/0.7539, allocations: 81.25 kB / 0.5372 GB, free: 114.4 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003208/0.7571, allocations: 1.31 MB / 0.5384 GB, free: 113.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004542/0.7576, allocations: 1.02 MB / 0.5394 GB, free: 112.1 MB / 378.7 MB Notification: Performance of SimCode: time 1.332e-06/0.7576, allocations: 0 / 0.5394 GB, free: 112.1 MB / 378.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