Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001086/0.001086, allocations: 197.6 kB / 8.538 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.144/1.144, allocations: 225.5 MB / 234.4 MB, free: 3.309 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008618/0.0008618, allocations: 94.02 kB / 286.3 MB, free: 5.293 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0904/0.09129, allocations: 56.89 MB / 343.2 MB, free: 8.566 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07845/0.1698, allocations: 51.48 MB / 394.7 MB, free: 5.039 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2013/0.3711, allocations: 83.03 MB / 477.7 MB, free: 9.883 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000153/0.3713, allocations: 69.41 kB / 477.8 MB, free: 9.859 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.03376/0.4051, allocations: 13.6 MB / 491.4 MB, free: 14.51 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.4051, allocations: 8 kB / 491.4 MB, free: 14.5 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001626/0.4053, allocations: 94.97 kB / 491.5 MB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008344/0.4061, allocations: 0.5001 MB / 492 MB, free: 13.94 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.728e-05/0.4062, allocations: 20 kB / 492 MB, free: 13.92 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001028/0.4063, allocations: 47.23 kB / 492.1 MB, free: 13.88 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009177/0.4072, allocations: 0.5103 MB / 492.6 MB, free: 13.56 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00084/0.408, allocations: 490.9 kB / 493.1 MB, free: 13.22 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.964e-05/0.4081, allocations: 4 kB / 493.1 MB, free: 13.21 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.434e-05/0.4081, allocations: 0 / 493.1 MB, free: 13.21 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.106e-05/0.4082, allocations: 16.75 kB / 493.1 MB, free: 13.2 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003684/0.4119, allocations: 2.266 MB / 495.4 MB, free: 11.3 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006465/0.4125, allocations: 400.2 kB / 495.7 MB, free: 11.04 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000332/0.4129, allocations: 245.6 kB / 496 MB, free: 10.9 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.551e-05/0.4129, allocations: 4.438 kB / 496 MB, free: 10.89 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004495/0.4134, allocations: 312.7 kB / 496.3 MB, free: 10.65 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 1.573e-06/0.4134, allocations: 0 / 496.3 MB, free: 10.65 MB / 362.7 MB Notification: Performance of matching and sorting (n=94): time 0.06757/0.481, allocations: 14.29 MB / 0.4986 GB, free: 13.54 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.385e-05/0.4811, allocations: 144.9 kB / 0.4987 GB, free: 13.37 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005425/0.4816, allocations: 419.8 kB / 0.4991 GB, free: 13.05 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001615/0.4818, allocations: 33.14 kB / 0.4992 GB, free: 13.01 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002004/0.482, allocations: 310 kB / 0.4995 GB, free: 12.73 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002532/0.4823, allocations: 308 kB / 0.4998 GB, free: 12.47 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.918e-05/0.4824, allocations: 0 / 0.4998 GB, free: 12.47 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.4825, allocations: 387.1 kB / 0.5001 GB, free: 12.11 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007788/0.4833, allocations: 453.7 kB / 0.5006 GB, free: 11.87 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009285/0.4842, allocations: 0.6717 MB / 0.5012 GB, free: 11.34 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001967/0.4862, allocations: 0.7068 MB / 0.5019 GB, free: 10.85 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.4862, allocations: 0 / 0.5019 GB, free: 10.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02382/0.5101, allocations: 5.012 MB / 0.5068 GB, free: 5.918 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.001e-05/0.5101, allocations: 12 kB / 0.5068 GB, free: 5.906 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.62e-05/0.5101, allocations: 4 kB / 0.5068 GB, free: 5.902 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02614/0.5363, allocations: 4.937 MB / 0.5116 GB, free: 0.9531 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008121/0.5371, allocations: 199.7 kB / 0.5118 GB, free: 0.7578 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006557/0.5437, allocations: 3.227 MB / 0.515 GB, free: 13.48 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00188/0.5456, allocations: 231.7 kB / 0.5152 GB, free: 13.25 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001401/0.5457, allocations: 47.97 kB / 0.5153 GB, free: 13.2 MB / 394.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: 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.0003407/0.5461, allocations: 143.8 kB / 0.5154 GB, free: 13.06 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001581/0.5462, allocations: 79.06 kB / 0.5155 GB, free: 12.98 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02385/0.5701, allocations: 4.908 MB / 0.5203 GB, free: 8.055 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.856e-05/0.5701, allocations: 12 kB / 0.5203 GB, free: 8.043 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.5702, allocations: 0 / 0.5203 GB, free: 8.043 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.237e-05/0.5702, allocations: 6.328 kB / 0.5203 GB, free: 8.039 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001303/0.5715, allocations: 1.016 MB / 0.5213 GB, free: 6.992 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-06/0.5715, allocations: 0 / 0.5213 GB, free: 6.992 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006385/0.5721, allocations: 143.9 kB / 0.5214 GB, free: 6.852 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02546/0.5976, allocations: 4.933 MB / 0.5262 GB, free: 1.906 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001876/0.5978, allocations: 19.97 kB / 0.5262 GB, free: 1.887 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006302/0.6041, allocations: 3.23 MB / 0.5294 GB, free: 14.6 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/0.6042, allocations: 3.906 kB / 0.5294 GB, free: 14.6 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02359/0.6278, allocations: 5.563 MB / 0.5348 GB, free: 9.004 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02466/0.6524, allocations: 6.652 MB / 0.5413 GB, free: 2.312 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002155/0.6527, allocations: 144.2 kB / 0.5415 GB, free: 2.152 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002141/0.6529, allocations: 4 kB / 0.5415 GB, free: 2.148 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001604/0.6545, allocations: 220.7 kB / 0.5417 GB, free: 1.934 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002614/0.6548, allocations: 100.6 kB / 0.5418 GB, free: 1.836 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001225/0.6549, allocations: 39.88 kB / 0.5418 GB, free: 1.797 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0003727/0.6553, allocations: 307 kB / 0.5421 GB, free: 1.5 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002315/0.6576, allocations: 236 kB / 0.5423 GB, free: 1.27 MB / 410.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.0003147/0.6579, allocations: 135.1 kB / 0.5425 GB, free: 1.129 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003306/0.6613, allocations: 1.395 MB / 0.5438 GB, free: 15.71 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.6613, allocations: 1.375 kB / 0.5438 GB, free: 15.71 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002258/0.6635, allocations: 0.7963 MB / 0.5446 GB, free: 14.92 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005055/0.6641, allocations: 92.61 kB / 0.5447 GB, free: 14.84 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00289/0.667, allocations: 1.316 MB / 0.546 GB, free: 13.49 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006326/0.6676, allocations: 1.012 MB / 0.547 GB, free: 12.45 MB / 426.7 MB Notification: Performance of SimCode: time 4.31e-07/0.6676, allocations: 4 kB / 0.547 GB, free: 12.45 MB / 426.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat does not exist to compare? outputFormat=mat