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"}) [: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 3.2.3+maint.om/package.mo): time 0.001068/0.001067, allocations: 183.7 kB / 8.479 MB, free: 1.879 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.08/1.08, allocations: 205.2 MB / 214.1 MB, free: 5.098 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.0008081/0.0008081, allocations: 79.39 kB / 262.1 MB, free: 5.141 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1412/0.142, allocations: 52.97 MB / 315.1 MB, free: 41.4 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06026/0.2023, allocations: 47.57 MB / 362.6 MB, free: 9.871 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2071/0.4095, allocations: 80.33 MB / 443 MB, free: 10.64 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001769/0.4097, allocations: 69.98 kB / 443 MB, free: 10.64 MB / 314.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.03341/0.4431, allocations: 12.95 MB / 456 MB, free: 6.5 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.197e-05/0.4431, allocations: 7.781 kB / 456 MB, free: 6.5 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000208/0.4434, allocations: 89.03 kB / 456.1 MB, free: 6.457 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008413/0.4442, allocations: 0.4906 MB / 456.6 MB, free: 6.113 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.837e-05/0.4443, allocations: 22.41 kB / 456.6 MB, free: 6.113 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.589e-05/0.4444, allocations: 37.25 kB / 456.6 MB, free: 6.113 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009033/0.4453, allocations: 0.4943 MB / 457.1 MB, free: 6.082 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008454/0.4461, allocations: 476.1 kB / 457.6 MB, free: 5.969 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.965e-05/0.4461, allocations: 0 / 457.6 MB, free: 5.969 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.532e-05/0.4462, allocations: 9.281 kB / 457.6 MB, free: 5.961 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.536e-05/0.4462, allocations: 13.66 kB / 457.6 MB, free: 5.961 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003493/0.4497, allocations: 2.217 MB / 459.8 MB, free: 4.734 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006695/0.4504, allocations: 401.4 kB / 460.2 MB, free: 4.691 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003415/0.4508, allocations: 246.9 kB / 460.5 MB, free: 4.672 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.051e-05/0.4508, allocations: 10.48 kB / 460.5 MB, free: 4.672 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004325/0.4513, allocations: 309.8 kB / 460.8 MB, free: 4.539 MB / 314.7 MB Notification: Performance of pre-optimization done (n=54): time 1.893e-06/0.4513, allocations: 1.375 kB / 460.8 MB, free: 4.539 MB / 314.7 MB Notification: Performance of matching and sorting (n=94): time 0.06621/0.5175, allocations: 14.29 MB / 475.1 MB, free: 13.05 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001034/0.5176, allocations: 148 kB / 475.2 MB, free: 12.88 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005388/0.5182, allocations: 391.7 kB / 475.6 MB, free: 12.57 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002078/0.5184, allocations: 33.69 kB / 475.6 MB, free: 12.54 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002048/0.5186, allocations: 288.4 kB / 475.9 MB, free: 12.28 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00032/0.5189, allocations: 303.8 kB / 476.2 MB, free: 12.02 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.278e-05/0.519, allocations: 0 / 476.2 MB, free: 12.02 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.5192, allocations: 376.3 kB / 476.6 MB, free: 11.67 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007711/0.52, allocations: 453.3 kB / 477 MB, free: 11.43 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008841/0.5209, allocations: 0.6495 MB / 477.7 MB, free: 10.93 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001942/0.5228, allocations: 0.6992 MB / 478.3 MB, free: 10.45 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.5228, allocations: 4 kB / 478.4 MB, free: 10.45 MB / 330.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02341/0.5463, allocations: 4.987 MB / 483.3 MB, free: 6.059 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.5463, allocations: 11.92 kB / 483.4 MB, free: 6.047 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.719e-05/0.5463, allocations: 4 kB / 483.4 MB, free: 6.043 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02542/0.5718, allocations: 4.95 MB / 488.3 MB, free: 1.375 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008027/0.5726, allocations: 190.2 kB / 488.5 MB, free: 1.195 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007915/0.5805, allocations: 3.435 MB / 491.9 MB, free: 14.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002077/0.5827, allocations: 227.8 kB / 492.1 MB, free: 14.28 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001743/0.5828, allocations: 47.84 kB / 492.2 MB, free: 14.24 MB / 346.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.00036/0.5832, allocations: 127 kB / 492.3 MB, free: 14.11 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000186/0.5834, allocations: 75.16 kB / 492.4 MB, free: 14.04 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02273/0.6061, allocations: 4.92 MB / 497.3 MB, free: 9.746 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.874e-05/0.6062, allocations: 12 kB / 497.3 MB, free: 9.734 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.207e-06/0.6062, allocations: 0 / 497.3 MB, free: 9.734 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.493e-05/0.6063, allocations: 3.984 kB / 497.3 MB, free: 9.73 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001598/0.6079, allocations: 0.9926 MB / 498.3 MB, free: 8.992 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.6079, allocations: 4 kB / 498.3 MB, free: 8.988 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006476/0.6086, allocations: 139 kB / 498.5 MB, free: 8.855 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02561/0.6342, allocations: 4.968 MB / 0.4916 GB, free: 4.094 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002372/0.6345, allocations: 11.97 kB / 0.4916 GB, free: 4.082 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007816/0.6423, allocations: 3.431 MB / 0.495 GB, free: 0.5977 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.917e-06/0.6423, allocations: 11.89 kB / 0.495 GB, free: 0.5859 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02414/0.6665, allocations: 5.548 MB / 0.5004 GB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02531/0.6918, allocations: 6.663 MB / 0.5069 GB, free: 4.352 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000222/0.6921, allocations: 136.2 kB / 0.5071 GB, free: 4.199 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002577/0.6924, allocations: 12 kB / 0.5071 GB, free: 4.188 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001652/0.694, allocations: 219.6 kB / 0.5073 GB, free: 3.973 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002886/0.6943, allocations: 100.6 kB / 0.5074 GB, free: 3.875 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001166/0.6945, allocations: 35.97 kB / 0.5074 GB, free: 3.84 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.000378/0.6948, allocations: 295 kB / 0.5077 GB, free: 3.555 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001381/0.6962, allocations: 236 kB / 0.5079 GB, free: 3.324 MB / 362.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.0002989/0.6965, allocations: 126.9 kB / 0.508 GB, free: 3.188 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004447/0.701, allocations: 1.547 MB / 0.5095 GB, free: 1.633 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.701, allocations: 3.938 kB / 0.5096 GB, free: 1.629 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003305/0.7043, allocations: 0.9534 MB / 0.5105 GB, free: 0.6719 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000561/0.7049, allocations: 85.95 kB / 0.5106 GB, free: 0.5859 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003266/0.7082, allocations: 1.276 MB / 0.5118 GB, free: 15.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006728/0.7089, allocations: 1.003 MB / 0.5128 GB, free: 14.27 MB / 378.7 MB Notification: Performance of SimCode: time 4.41e-07/0.7089, allocations: 0 / 0.5128 GB, free: 14.27 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