Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",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.00198/0.001979, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.145/2.145, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001093/0.001093, allocations: 86.05 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.596e-05/2.609e-05, allocations: 4 kB / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3474/0.3475, allocations: 47.56 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1315/0.4791, allocations: 80.42 MB / 442.8 MB, free: 5.789 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002934/0.4794, allocations: 69 kB / 442.9 MB, free: 5.723 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.05679/0.5362, allocations: 11.99 MB / 454.9 MB, free: 9.738 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.5363, allocations: 0 / 454.9 MB, free: 9.738 MB / 347.1 MB Notification: Performance of Transformations before backend: time 5.013e-05/0.5363, allocations: 12 kB / 454.9 MB, free: 9.727 MB / 347.1 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.003754/0.5401, allocations: 1.049 MB / 456 MB, free: 8.621 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.158e-05/0.5402, allocations: 8.031 kB / 456 MB, free: 8.613 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002666/0.5405, allocations: 86.97 kB / 456.1 MB, free: 8.527 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001316/0.5418, allocations: 0.4921 MB / 456.5 MB, free: 7.988 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.079e-05/0.5419, allocations: 20 kB / 456.6 MB, free: 7.969 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001539/0.542, allocations: 40.69 kB / 456.6 MB, free: 7.93 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001507/0.5435, allocations: 0.5024 MB / 457.1 MB, free: 7.43 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001354/0.5449, allocations: 471.9 kB / 457.6 MB, free: 6.961 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.736e-05/0.545, allocations: 3.984 kB / 457.6 MB, free: 6.957 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.992e-05/0.545, allocations: 0 / 457.6 MB, free: 6.957 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.171e-05/0.5451, allocations: 16 kB / 457.6 MB, free: 6.941 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006325/0.5514, allocations: 2.194 MB / 459.8 MB, free: 4.633 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001191/0.5526, allocations: 432.1 kB / 460.2 MB, free: 4.203 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006141/0.5533, allocations: 240.1 kB / 460.4 MB, free: 3.969 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.31e-05/0.5534, allocations: 12.42 kB / 460.5 MB, free: 3.957 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008303/0.5542, allocations: 332.8 kB / 460.8 MB, free: 3.605 MB / 347.1 MB Notification: Performance of pre-optimization done (n=54): time 5.1e-06/0.5542, allocations: 7.922 kB / 460.8 MB, free: 3.598 MB / 347.1 MB Notification: Performance of matching and sorting (n=94): time 0.1164/0.6707, allocations: 13.78 MB / 474.6 MB, free: 5.75 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001172/0.6708, allocations: 145.3 kB / 474.7 MB, free: 5.578 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007858/0.6716, allocations: 390.1 kB / 475.1 MB, free: 5.191 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002676/0.6719, allocations: 29.7 kB / 475.1 MB, free: 5.156 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003806/0.6723, allocations: 398.4 kB / 475.5 MB, free: 4.762 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004655/0.6728, allocations: 303.5 kB / 475.8 MB, free: 4.461 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001183/0.6729, allocations: 0 / 475.8 MB, free: 4.461 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0001856/0.6731, allocations: 346.8 kB / 476.1 MB, free: 4.113 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001383/0.6745, allocations: 458.5 kB / 476.6 MB, free: 3.664 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0016/0.6762, allocations: 0.6387 MB / 477.2 MB, free: 2.949 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003393/0.6796, allocations: 0.6862 MB / 477.9 MB, free: 2.266 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.429e-05/0.6796, allocations: 0 / 477.9 MB, free: 2.266 MB / 363.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.04097/0.7206, allocations: 4.844 MB / 482.8 MB, free: 13.41 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001088/0.7208, allocations: 64.78 kB / 482.8 MB, free: 13.33 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.292e-05/0.7208, allocations: 7.984 kB / 482.8 MB, free: 13.32 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04441/0.7652, allocations: 4.787 MB / 487.6 MB, free: 8.527 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001389/0.7667, allocations: 179.7 kB / 487.8 MB, free: 8.352 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01005/0.7768, allocations: 3.072 MB / 490.9 MB, free: 5.227 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003201/0.78, allocations: 195.8 kB / 491.1 MB, free: 5.035 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003086/0.7804, allocations: 48.03 kB / 491.1 MB, free: 4.988 MB / 379.1 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.00052/0.7809, allocations: 144.3 kB / 491.2 MB, free: 4.84 MB / 379.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04161/0.8226, allocations: 4.66 MB / 495.9 MB, free: 164 kB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004065/0.823, allocations: 71.16 kB / 496 MB, free: 92 kB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04128/0.8643, allocations: 4.771 MB / 0.489 GB, free: 11.3 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.958e-05/0.8644, allocations: 12.2 kB / 0.489 GB, free: 11.29 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.8644, allocations: 0 / 0.489 GB, free: 11.29 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.565e-05/0.8645, allocations: 12.92 kB / 0.489 GB, free: 11.28 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002262/0.8668, allocations: 1.023 MB / 0.49 GB, free: 10.21 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.836e-06/0.8668, allocations: 0 / 0.49 GB, free: 10.21 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001099/0.8679, allocations: 119.9 kB / 0.4901 GB, free: 10.1 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04403/0.912, allocations: 4.8 MB / 0.4948 GB, free: 5.285 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002789/0.9123, allocations: 19.97 kB / 0.4948 GB, free: 5.266 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009841/0.9222, allocations: 3.076 MB / 0.4979 GB, free: 2.137 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/0.9222, allocations: 0 / 0.4979 GB, free: 2.137 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3051/1.227, allocations: 5.398 MB / 0.5031 GB, free: 123.9 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000271/1.228, allocations: 143.4 kB / 0.5033 GB, free: 123.8 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002797/1.228, allocations: 5.859 kB / 0.5033 GB, free: 123.8 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002952/1.231, allocations: 197.3 kB / 0.5035 GB, free: 123.8 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005474/1.231, allocations: 102.1 kB / 0.5035 GB, free: 123.8 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001979/1.232, allocations: 35.08 kB / 0.5036 GB, free: 123.8 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.000543/1.232, allocations: 295.8 kB / 0.5039 GB, free: 123.7 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.71e-07/1.232, allocations: 3.031 kB / 0.5039 GB, free: 123.7 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.001347/1.234, allocations: 229.7 kB / 0.5041 GB, free: 123.7 MB / 395.1 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.05236/1.286, allocations: 5.989 MB / 0.5099 GB, free: 123.1 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.008833/1.295, allocations: 1.456 MB / 0.5114 GB, free: 122.6 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 1.206e-05/1.295, allocations: 1.031 kB / 0.5114 GB, free: 122.6 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006267/1.301, allocations: 0.7915 MB / 0.5121 GB, free: 122.3 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00171/1.303, allocations: 92.39 kB / 0.5122 GB, free: 122.3 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0071/1.31, allocations: 1.3 MB / 0.5135 GB, free: 121.7 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006778/1.311, allocations: 0.957 MB / 0.5144 GB, free: 121 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008008/1.312, allocations: 264.2 kB / 0.5147 GB, free: 120.8 MB / 395.1 MB Notification: Performance of SimCode: time 1.653e-06/1.312, allocations: 3.719 kB / 0.5147 GB, free: 120.8 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.021/4.332, allocations: 19.39 MB / 0.5336 GB, free: 110.7 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat does not exist to compare? outputFormat=mat