Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.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.HeatingPNP_NORGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingPNP_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 3.2.3+maint.om/package.mo): time 0.0009509/0.0009508, allocations: 179.1 kB / 8.477 MB, free: 1.883 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.076/1.076, 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.000853/0.000853, allocations: 85.97 kB / 262.1 MB, free: 5.141 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.156/0.1568, allocations: 52.96 MB / 315.1 MB, free: 41.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06443/0.2213, allocations: 47.58 MB / 362.6 MB, free: 9.871 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2031/0.4244, allocations: 80.35 MB / 443 MB, free: 10.96 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001821/0.4246, allocations: 65.56 kB / 443 MB, free: 10.96 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.03271/0.4574, allocations: 12.91 MB / 456 MB, free: 6.797 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.4574, allocations: 12.84 kB / 456 MB, free: 6.793 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000277/0.4577, allocations: 87.44 kB / 456.1 MB, free: 6.75 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008579/0.4586, allocations: 0.4893 MB / 456.5 MB, free: 6.41 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.536e-05/0.4586, allocations: 19.22 kB / 456.6 MB, free: 6.41 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.723e-05/0.4587, allocations: 37.88 kB / 456.6 MB, free: 6.41 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008713/0.4596, allocations: 0.5025 MB / 457.1 MB, free: 6.375 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008754/0.4605, allocations: 472.9 kB / 457.6 MB, free: 6.262 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.126e-05/0.4605, allocations: 0 / 457.6 MB, free: 6.262 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.524e-05/0.4606, allocations: 5.297 kB / 457.6 MB, free: 6.258 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.701e-05/0.4606, allocations: 14 kB / 457.6 MB, free: 6.258 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00358/0.4642, allocations: 2.217 MB / 459.8 MB, free: 5.031 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006476/0.4648, allocations: 403.8 kB / 460.2 MB, free: 4.984 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003316/0.4652, allocations: 241.5 kB / 460.4 MB, free: 4.969 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.989e-05/0.4652, allocations: 7.062 kB / 460.4 MB, free: 4.969 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004324/0.4657, allocations: 317.5 kB / 460.7 MB, free: 4.832 MB / 314.7 MB Notification: Performance of pre-optimization done (n=54): time 2.325e-06/0.4657, allocations: 0 / 460.7 MB, free: 4.832 MB / 314.7 MB Notification: Performance of matching and sorting (n=94): time 0.06463/0.5303, allocations: 14.28 MB / 475 MB, free: 13.33 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.285e-05/0.5304, allocations: 140.7 kB / 475.2 MB, free: 13.17 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005281/0.531, allocations: 395.8 kB / 475.6 MB, free: 12.86 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002021/0.5312, allocations: 29.27 kB / 475.6 MB, free: 12.83 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001936/0.5314, allocations: 292.1 kB / 475.9 MB, free: 12.57 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003196/0.5317, allocations: 298.4 kB / 476.2 MB, free: 12.31 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.961e-05/0.5318, allocations: 7.938 kB / 476.2 MB, free: 12.3 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.532, allocations: 385.8 kB / 476.5 MB, free: 11.95 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007481/0.5327, allocations: 452.2 kB / 477 MB, free: 11.71 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008387/0.5336, allocations: 0.6373 MB / 477.6 MB, free: 11.22 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00192/0.5355, allocations: 0.6998 MB / 478.3 MB, free: 10.74 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.5355, allocations: 4 kB / 478.3 MB, free: 10.73 MB / 330.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02336/0.5589, allocations: 4.984 MB / 483.3 MB, free: 6.352 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.157e-05/0.559, allocations: 4 kB / 483.3 MB, free: 6.348 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.039e-05/0.559, allocations: 7.906 kB / 483.3 MB, free: 6.34 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0261/0.5851, allocations: 4.949 MB / 488.3 MB, free: 1.676 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008055/0.586, allocations: 183.6 kB / 488.4 MB, free: 1.5 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006289/0.5923, allocations: 3.232 MB / 491.7 MB, free: 15 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001916/0.5942, allocations: 219.8 kB / 491.9 MB, free: 14.79 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001714/0.5944, allocations: 47.41 kB / 491.9 MB, free: 14.75 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: T1.vcb:DUMMY_STATE(unit = "V" ) "Collector-base voltage" type: Real T2.vcb:DUMMY_STATE(unit = "V" ) "Collector-base voltage" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.T2.vcb:DUMMY_DER(fixed = false ) "Collector-base voltage" type: Real $DER.T1.veb:DUMMY_DER(fixed = false ) "Emitter-base voltage" type: Real $DER.T1.vcb:DUMMY_DER(fixed = false ) "Collector-base 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.000381/0.5948, allocations: 130.8 kB / 492.1 MB, free: 14.62 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001991/0.595, allocations: 75.06 kB / 492.1 MB, free: 14.55 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02753/0.6225, allocations: 4.923 MB / 497.1 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.872e-05/0.6226, allocations: 8 kB / 497.1 MB, free: 10.24 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.779e-06/0.6226, allocations: 0 / 497.1 MB, free: 10.24 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.688e-05/0.6227, allocations: 3.984 kB / 497.1 MB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001769/0.6244, allocations: 1.001 MB / 498.1 MB, free: 9.492 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.598e-06/0.6245, allocations: 0 / 498.1 MB, free: 9.492 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006361/0.6251, allocations: 142.8 kB / 498.2 MB, free: 9.355 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02592/0.651, allocations: 4.952 MB / 0.4914 GB, free: 4.445 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002201/0.6513, allocations: 19.97 kB / 0.4914 GB, free: 4.426 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006251/0.6576, allocations: 3.216 MB / 0.4945 GB, free: 1.156 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.6576, allocations: 4 kB / 0.4945 GB, free: 1.152 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02455/0.6821, allocations: 5.553 MB / 0.5 GB, free: 11.59 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02584/0.708, allocations: 6.654 MB / 0.5065 GB, free: 4.914 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002136/0.7083, allocations: 144.2 kB / 0.5066 GB, free: 4.754 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001888/0.7085, allocations: 0 / 0.5066 GB, free: 4.754 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001557/0.71, allocations: 223.8 kB / 0.5068 GB, free: 4.535 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002606/0.7103, allocations: 100.6 kB / 0.5069 GB, free: 4.438 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001186/0.7104, allocations: 35.91 kB / 0.5069 GB, free: 4.402 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0003533/0.7108, allocations: 295 kB / 0.5072 GB, free: 4.117 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001312/0.7121, allocations: 235.9 kB / 0.5074 GB, free: 3.887 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.000279/0.7124, allocations: 134.4 kB / 0.5076 GB, free: 3.75 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003341/0.7157, allocations: 1.392 MB / 0.5089 GB, free: 2.352 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.7158, allocations: 8.188 kB / 0.5089 GB, free: 2.344 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002229/0.718, allocations: 0.7885 MB / 0.5097 GB, free: 1.551 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005314/0.7185, allocations: 86 kB / 0.5098 GB, free: 1.465 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002842/0.7214, allocations: 1.293 MB / 0.5111 GB, free: 168 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006156/0.722, allocations: 1.003 MB / 0.512 GB, free: 15.14 MB / 378.7 MB Notification: Performance of SimCode: time 3.81e-07/0.722, allocations: 0 / 0.512 GB, free: 15.14 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat does not exist to compare? outputFormat=mat