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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001076/0.001076, allocations: 180 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.373/1.373, allocations: 205.4 MB / 223.1 MB, free: 9.113 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.0008326/0.0008325, allocations: 93.11 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002477/0.0002477, allocations: 8 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2637/0.2639, allocations: 47.57 MB / 375.9 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1072/0.3712, allocations: 81.18 MB / 457.1 MB, free: 15.47 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002546/0.3715, allocations: 71.95 kB / 457.1 MB, free: 15.4 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03534/0.4069, allocations: 12.1 MB / 469.2 MB, free: 3.246 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4069, allocations: 3.938 kB / 469.3 MB, free: 3.242 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.008e-05/0.407, allocations: 12 kB / 469.3 MB, free: 3.23 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: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.002608/0.4096, allocations: 1.139 MB / 470.4 MB, free: 2.027 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.34e-05/0.4096, allocations: 8.031 kB / 470.4 MB, free: 2.02 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001676/0.4098, allocations: 106.5 kB / 470.5 MB, free: 1.906 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001742/0.41, allocations: 83.06 kB / 470.6 MB, free: 1.824 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008815/0.4109, allocations: 0.4976 MB / 471.1 MB, free: 1.281 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.74e-05/0.4109, allocations: 45.31 kB / 471.1 MB, free: 1.238 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001028/0.4111, allocations: 60 kB / 471.2 MB, free: 1.18 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001363/0.4124, allocations: 0.6506 MB / 471.8 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.4125, allocations: 0 / 471.8 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.408e-05/0.4125, allocations: 24 kB / 471.9 MB, free: 0.5 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.871e-05/0.4126, allocations: 19.98 kB / 471.9 MB, free: 492 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001676/0.4142, allocations: 0.7351 MB / 472.6 MB, free: 15.74 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004332/0.4186, allocations: 2.29 MB / 474.9 MB, free: 13.33 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001486/0.4201, allocations: 0.6342 MB / 475.5 MB, free: 12.69 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.012e-05/0.4202, allocations: 12.42 kB / 475.6 MB, free: 12.68 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001082/0.4213, allocations: 453.4 kB / 476 MB, free: 12.21 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 2.225e-06/0.4213, allocations: 3.938 kB / 476 MB, free: 12.2 MB / 362.7 MB Notification: Performance of matching and sorting (n=94): time 0.07304/0.4944, allocations: 16.52 MB / 492.5 MB, free: 11.57 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.91e-05/0.4945, allocations: 149.5 kB / 492.7 MB, free: 11.39 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005779/0.4951, allocations: 426 kB / 493.1 MB, free: 10.96 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002355/0.4953, allocations: 53.64 kB / 493.1 MB, free: 10.91 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002475/0.4956, allocations: 363.9 kB / 493.5 MB, free: 10.54 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002567/0.4958, allocations: 307.5 kB / 493.8 MB, free: 10.24 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.228e-05/0.4959, allocations: 16 kB / 493.8 MB, free: 10.22 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.4961, allocations: 386.8 kB / 494.2 MB, free: 9.836 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002013/0.4981, allocations: 0.7905 MB / 495 MB, free: 9.047 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002138/0.5003, allocations: 1.002 MB / 496 MB, free: 7.965 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002046/0.5023, allocations: 0.8729 MB / 496.9 MB, free: 7.082 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.5023, allocations: 0 / 496.9 MB, free: 7.082 MB / 378.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02431/0.5267, allocations: 5.601 MB / 0.4907 GB, free: 1.453 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001153/0.5268, allocations: 67.41 kB / 0.4907 GB, free: 1.375 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.163e-05/0.5269, allocations: 4 kB / 0.4908 GB, free: 1.371 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2462/0.7731, allocations: 7.323 MB / 0.4979 GB, free: 106.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007273/0.7739, allocations: 170.1 kB / 0.4981 GB, free: 106.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005075/0.779, allocations: 3.069 MB / 0.5011 GB, free: 105.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001654/0.7806, allocations: 226.8 kB / 0.5013 GB, free: 105.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.622e-05/0.7807, allocations: 42.66 kB / 0.5013 GB, free: 105.6 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 () * Number of clocked 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.0003619/0.7811, allocations: 220.6 kB / 0.5015 GB, free: 105.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001193/0.7812, allocations: 79.19 kB / 0.5016 GB, free: 105.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02214/0.8034, allocations: 5.458 MB / 0.5069 GB, free: 105.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.095e-05/0.8035, allocations: 19.34 kB / 0.507 GB, free: 105.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.026e-05/0.8035, allocations: 3.797 kB / 0.507 GB, free: 105.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-05/0.8035, allocations: 3.938 kB / 0.507 GB, free: 105.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001397/0.8049, allocations: 1.08 MB / 0.508 GB, free: 104.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.8049, allocations: 0 / 0.508 GB, free: 104.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005175/0.8055, allocations: 125.6 kB / 0.5081 GB, free: 104.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03294/0.8384, allocations: 7.289 MB / 0.5153 GB, free: 100.5 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002856/0.8388, allocations: 27.97 kB / 0.5153 GB, free: 100.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00596/0.8447, allocations: 3.234 MB / 0.5184 GB, free: 97.25 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.588e-06/0.8448, allocations: 4.812 kB / 0.5184 GB, free: 97.25 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02395/0.8687, allocations: 6.414 MB / 0.5247 GB, free: 90.87 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002229/0.869, allocations: 144.2 kB / 0.5248 GB, free: 90.71 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001517/0.8691, allocations: 16 kB / 0.5249 GB, free: 90.69 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001326/0.8705, allocations: 211.8 kB / 0.5251 GB, free: 90.48 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002333/0.8707, allocations: 111.8 kB / 0.5252 GB, free: 90.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.56e-05/0.8708, allocations: 33.98 kB / 0.5252 GB, free: 90.35 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003541/0.8712, allocations: 336 kB / 0.5255 GB, free: 90.02 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8712, allocations: 0 / 0.5255 GB, free: 90.02 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007745/0.872, allocations: 265.7 kB / 0.5258 GB, free: 89.77 MB / 378.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) * Number of clocked states: 0 () * 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.02405/0.896, allocations: 7.005 MB / 0.5326 GB, free: 82.76 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005363/0.9014, allocations: 2.174 MB / 0.5347 GB, free: 80.57 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.534e-06/0.9015, allocations: 4.312 kB / 0.5347 GB, free: 80.57 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00396/0.9055, allocations: 1.288 MB / 0.536 GB, free: 79.28 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007256/0.9062, allocations: 104.5 kB / 0.5361 GB, free: 79.18 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03171/0.9379, allocations: 13.52 MB / 0.5493 GB, free: 65.54 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003179/0.9383, allocations: 0.9508 MB / 0.5502 GB, free: 64.56 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000346/0.9387, allocations: 58.34 kB / 0.5503 GB, free: 64.51 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002654/0.9389, allocations: 267.3 kB / 0.5505 GB, free: 64.25 MB / 378.7 MB Notification: Performance of SimCode: time 1.192e-06/0.939, allocations: 0 / 0.5505 GB, free: 64.25 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0423/0.9813, allocations: 25.97 MB / 0.5759 GB, free: 38.32 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001733/0.9815, allocations: 218.2 kB / 0.5761 GB, free: 38.07 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.961/3.943, allocations: 0 / 0.5761 GB, free: 38.07 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