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.001543/0.001542, allocations: 181.9 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.117/2.117, 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.001113/0.001113, allocations: 86.66 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.951e-05/4.969e-05, allocations: 7.922 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1243/0.1244, allocations: 47.57 MB / 369.2 MB, free: 2.113 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4143/0.5388, allocations: 81.07 MB / 450.3 MB, free: 12.18 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002841/0.5392, allocations: 70.22 kB / 450.3 MB, free: 12.14 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05921/0.5984, allocations: 12.1 MB / 462.4 MB, free: 1.812 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.5985, allocations: 0 / 462.4 MB, free: 1.812 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.016e-05/0.5985, allocations: 12 kB / 462.4 MB, free: 1.801 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.004147/0.6027, allocations: 1.047 MB / 463.5 MB, free: 0.7383 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.063e-05/0.6028, allocations: 12.03 kB / 463.5 MB, free: 0.7266 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003369/0.6031, allocations: 106.5 kB / 463.6 MB, free: 0.6133 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003175/0.6035, allocations: 86.97 kB / 463.7 MB, free: 0.5273 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001567/0.605, allocations: 0.4938 MB / 464.2 MB, free: 15.99 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.755e-05/0.6052, allocations: 45.25 kB / 464.2 MB, free: 15.95 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002135/0.6054, allocations: 60 kB / 464.3 MB, free: 15.89 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001719/0.6071, allocations: 0.5493 MB / 464.8 MB, free: 15.33 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.625e-05/0.6072, allocations: 0 / 464.8 MB, free: 15.33 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001089/0.6073, allocations: 20 kB / 464.8 MB, free: 15.31 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.382e-05/0.6074, allocations: 16 kB / 464.9 MB, free: 15.3 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001766/0.6091, allocations: 0.5323 MB / 465.4 MB, free: 14.77 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007206/0.6164, allocations: 2.298 MB / 467.7 MB, free: 12.34 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001383/0.6178, allocations: 460.9 kB / 468.1 MB, free: 11.88 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007145/0.6186, allocations: 255.5 kB / 468.4 MB, free: 11.63 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.494e-05/0.6187, allocations: 12.42 kB / 468.4 MB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000957/0.6197, allocations: 345.6 kB / 468.7 MB, free: 11.25 MB / 346.7 MB Notification: Performance of pre-optimization done (n=54): time 7.214e-06/0.6197, allocations: 0 / 468.7 MB, free: 11.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=94): time 0.113/0.7327, allocations: 13.47 MB / 482.2 MB, free: 13.7 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001469/0.7329, allocations: 145.3 kB / 482.4 MB, free: 13.53 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008717/0.7338, allocations: 424.8 kB / 482.8 MB, free: 13.11 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003037/0.7341, allocations: 53.64 kB / 482.8 MB, free: 13.05 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003732/0.7345, allocations: 394.4 kB / 483.2 MB, free: 12.66 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005061/0.735, allocations: 307.5 kB / 483.5 MB, free: 12.36 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001412/0.7352, allocations: 20 kB / 483.5 MB, free: 12.34 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001845/0.7354, allocations: 350.8 kB / 483.9 MB, free: 11.98 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001581/0.737, allocations: 474 kB / 484.3 MB, free: 11.52 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001782/0.7388, allocations: 0.6614 MB / 485 MB, free: 10.78 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001658/0.7405, allocations: 0.547 MB / 485.5 MB, free: 10.22 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.434e-06/0.7405, allocations: 3.938 kB / 485.5 MB, free: 10.22 MB / 362.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.03899/0.7795, allocations: 4.778 MB / 490.3 MB, free: 5.41 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001056/0.7797, allocations: 67.39 kB / 490.4 MB, free: 5.332 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.942e-05/0.7798, allocations: 8 kB / 490.4 MB, free: 5.324 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06258/0.8423, allocations: 6.923 MB / 497.3 MB, free: 14.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001345/0.8437, allocations: 175.7 kB / 497.5 MB, free: 14.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007762/0.8515, allocations: 2.665 MB / 0.4884 GB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003104/0.8547, allocations: 223.8 kB / 0.4886 GB, free: 11.28 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002401/0.855, allocations: 47.97 kB / 0.4887 GB, free: 11.23 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.0004173/0.8554, allocations: 160.8 kB / 0.4888 GB, free: 11.07 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002669/0.8557, allocations: 79.14 kB / 0.4889 GB, free: 10.99 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03797/0.8937, allocations: 4.681 MB / 0.4935 GB, free: 6.281 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.408e-05/0.8938, allocations: 8 kB / 0.4935 GB, free: 6.273 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.769e-06/0.8938, allocations: 0 / 0.4935 GB, free: 6.273 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.8e-05/0.8938, allocations: 3.984 kB / 0.4935 GB, free: 6.27 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002437/0.8963, allocations: 1.118 MB / 0.4946 GB, free: 5.094 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.965e-06/0.8963, allocations: 0 / 0.4946 GB, free: 5.094 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001106/0.8974, allocations: 127.9 kB / 0.4947 GB, free: 4.969 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.062/0.9595, allocations: 6.895 MB / 0.5015 GB, free: 14.06 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002974/0.9598, allocations: 27.97 kB / 0.5015 GB, free: 14.03 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007796/0.9676, allocations: 2.693 MB / 0.5041 GB, free: 11.29 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.249e-06/0.9677, allocations: 0 / 0.5041 GB, free: 11.29 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04002/1.008, allocations: 5.302 MB / 0.5093 GB, free: 5.961 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003093/1.008, allocations: 140.2 kB / 0.5094 GB, free: 5.805 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002874/1.008, allocations: 27.94 kB / 0.5094 GB, free: 5.777 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002786/1.011, allocations: 211.8 kB / 0.5097 GB, free: 5.57 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004617/1.012, allocations: 100.6 kB / 0.5097 GB, free: 5.473 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001713/1.012, allocations: 35.97 kB / 0.5098 GB, free: 5.438 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0006197/1.013, allocations: 321.6 kB / 0.5101 GB, free: 5.125 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.456e-06/1.013, allocations: 4 kB / 0.5101 GB, free: 5.121 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001244/1.014, allocations: 267.9 kB / 0.5103 GB, free: 4.859 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.0444/1.058, allocations: 5.895 MB / 0.5161 GB, free: 14.91 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006357/1.065, allocations: 1.512 MB / 0.5176 GB, free: 13.38 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.074e-06/1.065, allocations: 1.125 kB / 0.5176 GB, free: 13.38 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00428/1.069, allocations: 0.8175 MB / 0.5184 GB, free: 12.56 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001023/1.07, allocations: 114.8 kB / 0.5185 GB, free: 12.45 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005469/1.076, allocations: 1.394 MB / 0.5199 GB, free: 11.01 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006871/1.076, allocations: 0.9548 MB / 0.5208 GB, free: 10.03 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006433/1.077, allocations: 263.3 kB / 0.521 GB, free: 9.773 MB / 410.7 MB Notification: Performance of SimCode: time 1.072e-06/1.077, allocations: 0 / 0.521 GB, free: 9.773 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.323/4.4, allocations: 19.5 MB / 0.5401 GB, free: 133.4 MB / 410.7 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