Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate",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.002086/0.002085, allocations: 180 kB / 8.363 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.105/2.105, allocations: 205.3 MB / 214.1 MB, free: 14.15 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.001094/0.001094, allocations: 93.25 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.388e-05/3.377e-05, allocations: 7.984 kB / 314.9 MB, free: 9.07 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3376/0.3376, allocations: 47.56 MB / 362.4 MB, free: 45.72 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.134/0.4717, allocations: 80.41 MB / 442.8 MB, free: 5.793 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002844/0.4721, allocations: 73 kB / 442.9 MB, free: 5.723 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.05903/0.5311, allocations: 12.01 MB / 454.9 MB, free: 9.719 MB / 347.1 MB Notification: Performance of FrontEnd: time 2.885e-06/0.5312, allocations: 0 / 454.9 MB, free: 9.719 MB / 347.1 MB Notification: Performance of Transformations before backend: time 5.055e-05/0.5312, allocations: 16 kB / 454.9 MB, free: 9.703 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.004051/0.5353, allocations: 1.045 MB / 456 MB, free: 8.602 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.95e-05/0.5354, allocations: 12.03 kB / 456 MB, free: 8.59 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004252/0.5358, allocations: 90.97 kB / 456.1 MB, free: 8.5 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001588/0.5374, allocations: 0.4959 MB / 456.6 MB, free: 7.957 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.474e-05/0.5375, allocations: 23.94 kB / 456.6 MB, free: 7.934 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001751/0.5377, allocations: 36 kB / 456.6 MB, free: 7.898 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001581/0.5393, allocations: 0.4962 MB / 457.1 MB, free: 7.406 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001432/0.5408, allocations: 475.8 kB / 457.6 MB, free: 6.934 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.972e-05/0.5408, allocations: 0 / 457.6 MB, free: 6.934 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.642e-05/0.5409, allocations: 0 / 457.6 MB, free: 6.934 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.212e-05/0.541, allocations: 20 kB / 457.6 MB, free: 6.914 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006688/0.5477, allocations: 2.186 MB / 459.8 MB, free: 4.613 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001226/0.5489, allocations: 448.1 kB / 460.2 MB, free: 4.168 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006032/0.5496, allocations: 238.2 kB / 460.5 MB, free: 3.934 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.38e-05/0.5497, allocations: 8.422 kB / 460.5 MB, free: 3.926 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000829/0.5505, allocations: 336.7 kB / 460.8 MB, free: 3.57 MB / 347.1 MB Notification: Performance of pre-optimization done (n=54): time 2.895e-06/0.5505, allocations: 0 / 460.8 MB, free: 3.57 MB / 347.1 MB Notification: Performance of matching and sorting (n=94): time 0.1154/0.6659, allocations: 13.78 MB / 474.6 MB, free: 5.719 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001219/0.6661, allocations: 145.3 kB / 474.7 MB, free: 5.547 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007607/0.6668, allocations: 398.1 kB / 475.1 MB, free: 5.148 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003026/0.6672, allocations: 29.7 kB / 475.1 MB, free: 5.113 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003833/0.6676, allocations: 398.4 kB / 475.5 MB, free: 4.719 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004789/0.668, allocations: 295.5 kB / 475.8 MB, free: 4.426 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001294/0.6682, allocations: 0.9375 kB / 475.8 MB, free: 4.426 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0001859/0.6684, allocations: 346.8 kB / 476.2 MB, free: 4.078 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001368/0.6698, allocations: 454.6 kB / 476.6 MB, free: 3.633 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00157/0.6714, allocations: 0.6504 MB / 477.3 MB, free: 2.906 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003418/0.6748, allocations: 0.6901 MB / 477.9 MB, free: 2.219 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.457e-05/0.6749, allocations: 0 / 477.9 MB, free: 2.219 MB / 363.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.04123/0.7161, allocations: 4.84 MB / 482.8 MB, free: 13.36 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.454e-05/0.7163, allocations: 63.41 kB / 482.8 MB, free: 13.29 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.952e-05/0.7163, allocations: 7.984 kB / 482.9 MB, free: 13.28 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04431/0.7606, allocations: 4.795 MB / 487.7 MB, free: 8.477 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001405/0.7621, allocations: 178.1 kB / 487.8 MB, free: 8.305 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01212/0.7743, allocations: 3.223 MB / 491 MB, free: 5.027 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003235/0.7776, allocations: 207.8 kB / 491.3 MB, free: 4.824 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003136/0.7779, allocations: 47.97 kB / 491.3 MB, free: 4.777 MB / 379.1 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.0005105/0.7784, allocations: 139.1 kB / 491.4 MB, free: 4.633 MB / 379.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04014/0.8186, allocations: 4.66 MB / 496.1 MB, free: 15.95 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004546/0.8191, allocations: 75.14 kB / 496.2 MB, free: 15.88 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04014/0.8593, allocations: 4.777 MB / 0.4892 GB, free: 11.09 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.791e-05/0.8594, allocations: 16 kB / 0.4892 GB, free: 11.07 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.939e-06/0.8594, allocations: 0 / 0.4892 GB, free: 11.07 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.918e-05/0.8594, allocations: 3.984 kB / 0.4892 GB, free: 11.07 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002378/0.8618, allocations: 1.012 MB / 0.4902 GB, free: 10.02 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.32e-05/0.8619, allocations: 0 / 0.4902 GB, free: 10.02 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001158/0.8631, allocations: 127.9 kB / 0.4903 GB, free: 9.891 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04438/0.9075, allocations: 4.807 MB / 0.495 GB, free: 5.074 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002893/0.9078, allocations: 15.97 kB / 0.495 GB, free: 5.059 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01181/0.9196, allocations: 3.232 MB / 0.4982 GB, free: 1.773 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.124e-05/0.9197, allocations: 3.984 kB / 0.4982 GB, free: 1.77 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3086/1.228, allocations: 5.404 MB / 0.5035 GB, free: 124.2 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002923/1.229, allocations: 140.8 kB / 0.5036 GB, free: 124.1 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002749/1.229, allocations: 9.859 kB / 0.5036 GB, free: 124.1 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002811/1.232, allocations: 201.8 kB / 0.5038 GB, free: 124.1 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004401/1.232, allocations: 99.81 kB / 0.5039 GB, free: 124.1 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001615/1.232, allocations: 33.06 kB / 0.5039 GB, free: 124.1 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0005413/1.233, allocations: 296.6 kB / 0.5042 GB, free: 124 MB / 395.1 MB Notification: Performance of sort global known variables: time 6.21e-07/1.233, allocations: 0 / 0.5042 GB, free: 124 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.001247/1.234, allocations: 229.9 kB / 0.5044 GB, free: 124 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.04079/1.275, allocations: 5.985 MB / 0.5103 GB, free: 123.3 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.007501/1.283, allocations: 1.606 MB / 0.5119 GB, free: 122.9 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 7.795e-06/1.283, allocations: 2.609 kB / 0.5119 GB, free: 122.9 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005894/1.289, allocations: 0.942 MB / 0.5128 GB, free: 122.6 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001121/1.29, allocations: 88.44 kB / 0.5129 GB, free: 122.6 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004888/1.295, allocations: 1.295 MB / 0.5141 GB, free: 122 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004176/1.295, allocations: 0.962 MB / 0.5151 GB, free: 121.2 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000538/1.296, allocations: 257.7 kB / 0.5153 GB, free: 121 MB / 395.1 MB Notification: Performance of SimCode: time 1.243e-06/1.296, allocations: 0 / 0.5153 GB, free: 121 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.909/4.205, allocations: 19.27 MB / 0.5341 GB, free: 110.2 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat does not exist to compare? outputFormat=mat