Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREG.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.Digital.Examples.DFFREG,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DFFREG",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREG,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DFFREG",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.002498/0.002498, 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.238/2.238, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001631/0.001631, allocations: 82.7 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.142e-05/4.156e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.109, allocations: 47.58 MB / 369.2 MB, free: 2.105 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5155/0.6246, allocations: 82.11 MB / 451.3 MB, free: 11.03 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003296/0.625, allocations: 63.66 kB / 451.4 MB, free: 11 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1298/0.7548, allocations: 28 MB / 479.4 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.7548, allocations: 0 / 479.4 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.521e-05/0.7549, allocations: 12 kB / 479.4 MB, free: 0.9805 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001622/0.7565, allocations: 1.008 MB / 480.4 MB, free: 15.88 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.16e-05/0.7566, allocations: 12.03 kB / 480.4 MB, free: 15.87 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001804/0.7568, allocations: 58.55 kB / 480.4 MB, free: 15.8 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002135/0.757, allocations: 86.97 kB / 480.5 MB, free: 15.72 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009537/0.758, allocations: 427.5 kB / 480.9 MB, free: 15.26 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.859e-05/0.7581, allocations: 16 kB / 481 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001123/0.7582, allocations: 31.94 kB / 481 MB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001292/0.7595, allocations: 0.4983 MB / 481.5 MB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.7595, allocations: 0 / 481.5 MB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.039e-05/0.7596, allocations: 19.98 kB / 481.5 MB, free: 14.69 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.7596, allocations: 0 / 481.5 MB, free: 14.69 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009092/0.7606, allocations: 360.1 kB / 481.9 MB, free: 14.34 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002221/0.7628, allocations: 0.8598 MB / 482.7 MB, free: 13.43 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001121/0.764, allocations: 0.5062 MB / 483.2 MB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001025/0.765, allocations: 0.4889 MB / 483.7 MB, free: 12.42 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.786e-05/0.7651, allocations: 4 kB / 483.7 MB, free: 12.41 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001351/0.7664, allocations: 0.6509 MB / 484.4 MB, free: 11.72 MB / 362.7 MB Notification: Performance of pre-optimization done (n=34): time 3.547e-06/0.7664, allocations: 0 / 484.4 MB, free: 11.72 MB / 362.7 MB Notification: Performance of matching and sorting (n=34): time 0.002767/0.7692, allocations: 1.183 MB / 485.6 MB, free: 10.49 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002533/0.7695, allocations: 275.3 kB / 485.8 MB, free: 10.17 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002528/0.7721, allocations: 1.023 MB / 486.8 MB, free: 9.133 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002026/0.7723, allocations: 41.7 kB / 486.9 MB, free: 9.086 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001801/0.7725, allocations: 200.5 kB / 487.1 MB, free: 8.891 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001896/0.7727, allocations: 90.97 kB / 487.2 MB, free: 8.801 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.274e-05/0.7728, allocations: 8 kB / 487.2 MB, free: 8.793 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.7729, allocations: 326.8 kB / 487.5 MB, free: 8.465 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008756/0.7738, allocations: 352.1 kB / 487.8 MB, free: 8.121 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008284/0.7747, allocations: 356.4 kB / 488.2 MB, free: 7.773 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008421/0.7755, allocations: 496.9 kB / 488.7 MB, free: 7.246 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.7756, allocations: 0 / 488.7 MB, free: 7.246 MB / 362.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002511/0.7781, allocations: 1.11 MB / 489.8 MB, free: 6.086 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002632/0.7784, allocations: 239.9 kB / 490 MB, free: 5.809 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.7784, allocations: 4 kB / 490 MB, free: 5.805 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.7784, allocations: 0 / 490 MB, free: 5.805 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.052e-05/0.7785, allocations: 7.938 kB / 490 MB, free: 5.797 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.607e-06/0.7785, allocations: 0 / 490 MB, free: 5.797 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005853/0.7791, allocations: 39.88 kB / 490.1 MB, free: 5.758 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000275/0.7794, allocations: 148.2 kB / 490.2 MB, free: 5.613 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 40 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,$PRE.dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].x,$PRE.dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].x,$PRE.dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREG.dFFR.reset,dFFREG.dFFR.reset,$PRE.dFFREG.dFFR.clock,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 7 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005655/0.78, allocations: 418.9 kB / 490.6 MB, free: 5.152 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000207/0.7802, allocations: 87.06 kB / 490.7 MB, free: 5.066 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004894/0.7807, allocations: 155.8 kB / 490.9 MB, free: 4.91 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.7807, allocations: 0 / 490.9 MB, free: 4.91 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.528e-06/0.7807, allocations: 3.984 kB / 490.9 MB, free: 4.906 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.7807, allocations: 0 / 490.9 MB, free: 4.906 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004154/0.7849, allocations: 1.954 MB / 492.8 MB, free: 2.852 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.674e-06/0.785, allocations: 4 kB / 492.8 MB, free: 2.848 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.251e-05/0.785, allocations: 3.938 kB / 492.8 MB, free: 2.844 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-05/0.785, allocations: 7.938 kB / 492.8 MB, free: 2.836 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000117/0.7851, allocations: 35.97 kB / 492.9 MB, free: 2.801 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.833e-06/0.7852, allocations: 4 kB / 492.9 MB, free: 2.797 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.7852, allocations: 0 / 492.9 MB, free: 2.797 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002954/0.7881, allocations: 1.361 MB / 494.2 MB, free: 1.375 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001613/0.7898, allocations: 0.5622 MB / 494.8 MB, free: 0.793 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002765/0.7901, allocations: 55.97 kB / 494.8 MB, free: 0.7383 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005515/0.7907, allocations: 43.91 kB / 494.9 MB, free: 0.6953 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006813/0.7914, allocations: 243.7 kB / 495.1 MB, free: 468 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002842/0.7917, allocations: 155.9 kB / 495.3 MB, free: 312 kB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002114/0.7938, allocations: 0.8578 MB / 496.1 MB, free: 15.45 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.32e-07/0.7938, allocations: 0 / 496.1 MB, free: 15.45 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00082/0.7947, allocations: 120 kB / 496.3 MB, free: 15.34 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.dFFR.reset,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.next_assign_val[2]) * Number of discrete states: 32 (data_1.y,reset.y,data_0.y,clock.y,dFFREG.dFFR.dataOut[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.next_assign_val[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.nextstate[1],dFFREG.dFFR.reset_flag,dFFREG.dFFR.clock_flag,dFFREG.dFFR.clock,dFFREG.dFFR.reset,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREG.delay.inertialDelaySensitive[2].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 7 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00365/0.7983, allocations: 2.014 MB / 498.3 MB, free: 13.25 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002799/0.8012, allocations: 1.503 MB / 499.8 MB, free: 11.66 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.8012, allocations: 0 / 499.8 MB, free: 11.66 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001814/0.803, allocations: 1.117 MB / 0.4891 GB, free: 10.46 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002031/0.8051, allocations: 284.7 kB / 0.4894 GB, free: 10.18 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005813/0.811, allocations: 1.964 MB / 0.4913 GB, free: 8.172 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001186/0.8122, allocations: 1.042 MB / 0.4924 GB, free: 7.098 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001725/0.8124, allocations: 75.41 kB / 0.4924 GB, free: 7.023 MB / 378.7 MB Notification: Performance of SimCode: time 9.02e-07/0.8124, allocations: 3.938 kB / 0.4924 GB, free: 7.02 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.746/3.558, allocations: 9.463 MB / 0.5017 GB, free: 13.4 MB / 394.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREG.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREG.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREG_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DFFREG_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DFFREG.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREG.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREG_res.mat does not exist to compare? outputFormat=mat