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.001591/0.001591, allocations: 181.1 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.341/2.341, allocations: 205.2 MB / 219.4 MB, free: 14.28 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001125/0.001125, allocations: 90.62 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.637e-05/3.661e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09624/0.09632, allocations: 47.57 MB / 369.2 MB, free: 2.113 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4122/0.5086, allocations: 81.06 MB / 450.2 MB, free: 12.23 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002988/0.5089, allocations: 68.5 kB / 450.3 MB, free: 12.2 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06467/0.5736, allocations: 12.14 MB / 462.4 MB, free: 1.84 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.5737, allocations: 0 / 462.4 MB, free: 1.84 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.292e-05/0.5737, allocations: 12 kB / 462.5 MB, free: 1.828 MB / 330.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.003823/0.5776, allocations: 1.038 MB / 463.5 MB, free: 0.7305 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.3e-05/0.5776, allocations: 8.031 kB / 463.5 MB, free: 0.7227 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002289/0.5779, allocations: 102.5 kB / 463.6 MB, free: 0.6133 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002596/0.5782, allocations: 86.97 kB / 463.7 MB, free: 0.5273 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001376/0.5795, allocations: 0.4899 MB / 464.2 MB, free: 15.99 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.817e-05/0.5797, allocations: 57.25 kB / 464.2 MB, free: 15.94 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001734/0.5799, allocations: 60 kB / 464.3 MB, free: 15.88 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001629/0.5815, allocations: 0.5531 MB / 464.8 MB, free: 15.32 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.694e-05/0.5815, allocations: 0 / 464.8 MB, free: 15.32 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001025/0.5817, allocations: 28 kB / 464.9 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.434e-05/0.5817, allocations: 16 kB / 464.9 MB, free: 15.28 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001592/0.5833, allocations: 0.5207 MB / 465.4 MB, free: 14.76 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006576/0.5899, allocations: 2.298 MB / 467.7 MB, free: 12.33 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001333/0.5913, allocations: 465 kB / 468.2 MB, free: 11.87 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007131/0.592, allocations: 251.5 kB / 468.4 MB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.863e-05/0.5921, allocations: 20.41 kB / 468.4 MB, free: 11.61 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009437/0.5931, allocations: 345.6 kB / 468.8 MB, free: 11.24 MB / 346.7 MB Notification: Performance of pre-optimization done (n=54): time 3.637e-06/0.5931, allocations: 4 kB / 468.8 MB, free: 11.23 MB / 346.7 MB Notification: Performance of matching and sorting (n=94): time 0.1147/0.7079, allocations: 13.48 MB / 482.2 MB, free: 13.68 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001343/0.7081, allocations: 149.3 kB / 482.4 MB, free: 13.5 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000874/0.709, allocations: 420.8 kB / 482.8 MB, free: 13.09 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002994/0.7093, allocations: 45.7 kB / 482.8 MB, free: 13.04 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003796/0.7097, allocations: 402.4 kB / 483.2 MB, free: 12.64 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004745/0.7102, allocations: 307.5 kB / 483.5 MB, free: 12.34 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000136/0.7103, allocations: 16 kB / 483.6 MB, free: 12.32 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001871/0.7105, allocations: 350.7 kB / 483.9 MB, free: 11.97 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001563/0.7121, allocations: 474 kB / 484.4 MB, free: 11.51 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001782/0.7139, allocations: 0.6769 MB / 485 MB, free: 10.75 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001664/0.7156, allocations: 0.5392 MB / 485.6 MB, free: 10.2 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.848e-06/0.7156, allocations: 8 kB / 485.6 MB, free: 10.19 MB / 362.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.0398/0.7555, allocations: 4.778 MB / 490.4 MB, free: 5.383 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001412/0.7557, allocations: 67.39 kB / 490.4 MB, free: 5.305 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.107e-05/0.7557, allocations: 7.953 kB / 490.4 MB, free: 5.297 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0651/0.8208, allocations: 6.938 MB / 497.4 MB, free: 14.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001379/0.8222, allocations: 167.8 kB / 497.5 MB, free: 14.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009771/0.832, allocations: 2.825 MB / 0.4886 GB, free: 11.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003267/0.8354, allocations: 231.7 kB / 0.4889 GB, free: 11.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003291/0.8357, allocations: 47.97 kB / 0.4889 GB, free: 11.03 MB / 378.7 MB 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.0004245/0.8362, allocations: 152.9 kB / 0.4891 GB, free: 10.87 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000277/0.8365, allocations: 75.16 kB / 0.4891 GB, free: 10.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03892/0.8754, allocations: 4.685 MB / 0.4937 GB, free: 6.082 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.542e-05/0.8755, allocations: 12 kB / 0.4937 GB, free: 6.07 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.207e-06/0.8755, allocations: 0 / 0.4937 GB, free: 6.07 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.921e-05/0.8756, allocations: 3.984 kB / 0.4937 GB, free: 6.066 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002508/0.8781, allocations: 1.118 MB / 0.4948 GB, free: 4.891 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.043e-05/0.8781, allocations: 0 / 0.4948 GB, free: 4.891 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001152/0.8793, allocations: 127.8 kB / 0.4949 GB, free: 4.766 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06432/0.9437, allocations: 6.899 MB / 0.5017 GB, free: 13.85 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003078/0.944, allocations: 27.97 kB / 0.5017 GB, free: 13.82 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009661/0.9537, allocations: 2.845 MB / 0.5045 GB, free: 10.93 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.9538, allocations: 0 / 0.5045 GB, free: 10.93 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04114/0.9949, allocations: 5.31 MB / 0.5097 GB, free: 5.594 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003416/0.9953, allocations: 136.3 kB / 0.5098 GB, free: 5.441 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003969/0.9957, allocations: 27.94 kB / 0.5098 GB, free: 5.414 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002964/0.9987, allocations: 211.8 kB / 0.51 GB, free: 5.207 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000492/0.9993, allocations: 100.6 kB / 0.5101 GB, free: 5.109 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001827/0.9995, allocations: 43.91 kB / 0.5102 GB, free: 5.066 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0006631/1, allocations: 325.6 kB / 0.5105 GB, free: 4.75 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.21e-07/1, allocations: 0 / 0.5105 GB, free: 4.75 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001304/1.001, allocations: 264 kB / 0.5107 GB, free: 4.492 MB / 394.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.04167/1.043, allocations: 5.891 MB / 0.5165 GB, free: 14.55 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008439/1.052, allocations: 1.664 MB / 0.5181 GB, free: 12.87 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.164e-05/1.052, allocations: 4 kB / 0.5181 GB, free: 12.86 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006368/1.058, allocations: 0.9668 MB / 0.519 GB, free: 11.89 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001131/1.059, allocations: 110.8 kB / 0.5191 GB, free: 11.79 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006426/1.066, allocations: 1.367 MB / 0.5205 GB, free: 10.37 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006906/1.067, allocations: 0.9509 MB / 0.5214 GB, free: 9.395 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006595/1.067, allocations: 263.3 kB / 0.5217 GB, free: 9.141 MB / 410.7 MB Notification: Performance of SimCode: time 1.132e-06/1.067, allocations: 0 / 0.5217 GB, free: 9.141 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.457/4.524, allocations: 19.39 MB / 0.5406 GB, free: 133.4 MB / 410.7 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