Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Electrical_Digital_Examples_DFFREG",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREG,fileNamePrefix="Modelica_3_2_3_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.001465/0.001465, allocations: 178.4 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.53/1.53, allocations: 205.3 MB / 214.4 MB, free: 1.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008617/0.0008617, allocations: 91.47 kB / 262.4 MB, free: 1.625 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.072e-05/2.082e-05, allocations: 0 / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08879/0.08884, allocations: 47.59 MB / 363.2 MB, free: 6.973 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3158/0.4046, allocations: 81.7 MB / 444.9 MB, free: 13.63 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002155/0.4049, allocations: 65.03 kB / 444.9 MB, free: 13.6 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06787/0.4728, allocations: 27.81 MB / 472.7 MB, free: 6.977 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.4728, allocations: 4 kB / 472.7 MB, free: 6.973 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.065e-05/0.4729, allocations: 12 kB / 472.8 MB, free: 6.961 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.00106/0.4739, allocations: 1.014 MB / 473.8 MB, free: 5.91 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.474, allocations: 8.031 kB / 473.8 MB, free: 5.902 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001375/0.4741, allocations: 86.97 kB / 473.9 MB, free: 5.816 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005724/0.4747, allocations: 424.2 kB / 474.3 MB, free: 5.387 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.921e-05/0.4747, allocations: 15.5 kB / 474.3 MB, free: 5.375 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.677e-05/0.4748, allocations: 23.94 kB / 474.3 MB, free: 5.355 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005126/0.4753, allocations: 345.4 kB / 474.7 MB, free: 5.113 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006733/0.476, allocations: 492.3 kB / 475.1 MB, free: 4.738 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.476, allocations: 0 / 475.1 MB, free: 4.738 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.708e-05/0.4761, allocations: 10.94 kB / 475.1 MB, free: 4.73 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.308e-06/0.4761, allocations: 4 kB / 475.1 MB, free: 4.727 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001295/0.4774, allocations: 0.8195 MB / 476 MB, free: 4.035 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005479/0.478, allocations: 0.4939 MB / 476.5 MB, free: 3.73 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000502/0.4785, allocations: 493.8 kB / 476.9 MB, free: 3.445 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.226e-05/0.4785, allocations: 0 / 476.9 MB, free: 3.445 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007707/0.4793, allocations: 0.6459 MB / 477.6 MB, free: 2.879 MB / 346.7 MB Notification: Performance of pre-optimization done (n=34): time 3.306e-06/0.4793, allocations: 0 / 477.6 MB, free: 2.879 MB / 346.7 MB Notification: Performance of matching and sorting (n=34): time 0.001417/0.4807, allocations: 0.9231 MB / 478.5 MB, free: 2.043 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001915/0.4809, allocations: 279.3 kB / 478.8 MB, free: 1.715 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001359/0.4823, allocations: 0.9879 MB / 479.8 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.398e-05/0.4824, allocations: 41.69 kB / 479.8 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001359/0.4825, allocations: 146 kB / 480 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00011/0.4827, allocations: 83.03 kB / 480 MB, free: 456 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.734e-05/0.4827, allocations: 11.94 kB / 480 MB, free: 444 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.4829, allocations: 346.8 kB / 480.4 MB, free: 88 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004835/0.4834, allocations: 332.2 kB / 480.7 MB, free: 15.76 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004381/0.4838, allocations: 344.5 kB / 481 MB, free: 15.43 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003177/0.4841, allocations: 249.3 kB / 481.3 MB, free: 15.18 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.4842, allocations: 0 / 481.3 MB, free: 15.18 MB / 362.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001184/0.4853, allocations: 0.8525 MB / 482.1 MB, free: 14.32 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001741/0.4855, allocations: 239.9 kB / 482.4 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.4856, allocations: 0 / 482.4 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.4856, allocations: 0 / 482.4 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.408e-05/0.4856, allocations: 8 kB / 482.4 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.4856, allocations: 7.938 kB / 482.4 MB, free: 14.03 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003195/0.486, allocations: 35.88 kB / 482.4 MB, free: 14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001763/0.4861, allocations: 152.2 kB / 482.6 MB, free: 13.85 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.0003689/0.4865, allocations: 398.1 kB / 483 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001432/0.488, allocations: 0.9882 MB / 484 MB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001063/0.4881, allocations: 87.06 kB / 484 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003334/0.4884, allocations: 148.1 kB / 484.2 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.4884, allocations: 4 kB / 484.2 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.4884, allocations: 0 / 484.2 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.4885, allocations: 0 / 484.2 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002198/0.4907, allocations: 1.619 MB / 485.8 MB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.029e-05/0.4907, allocations: 4 kB / 485.8 MB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.723e-05/0.4907, allocations: 3.938 kB / 485.8 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.4907, allocations: 4 kB / 485.8 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.113e-05/0.4908, allocations: 35.98 kB / 485.9 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.988e-06/0.4908, allocations: 3.984 kB / 485.9 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.4908, allocations: 0 / 485.9 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001484/0.4923, allocations: 1.068 MB / 486.9 MB, free: 9.375 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007929/0.4931, allocations: 0.5661 MB / 487.5 MB, free: 8.789 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001632/0.4933, allocations: 55.97 kB / 487.5 MB, free: 8.734 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000309/0.4936, allocations: 43.91 kB / 487.6 MB, free: 8.691 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000404/0.494, allocations: 239.7 kB / 487.8 MB, free: 8.457 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001717/0.4942, allocations: 155.9 kB / 488 MB, free: 8.305 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001127/0.4953, allocations: 0.8187 MB / 488.8 MB, free: 7.488 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4954, allocations: 0 / 488.8 MB, free: 7.488 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004821/0.4958, allocations: 120 kB / 488.9 MB, free: 7.371 MB / 362.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.001807/0.4977, allocations: 1.717 MB / 490.6 MB, free: 5.629 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001603/0.4993, allocations: 1.484 MB / 492.1 MB, free: 4.059 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.4993, allocations: 0 / 492.1 MB, free: 4.059 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00105/0.5004, allocations: 1.093 MB / 493.2 MB, free: 2.879 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001283/0.5016, allocations: 275.9 kB / 493.5 MB, free: 2.609 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003308/0.505, allocations: 1.857 MB / 495.3 MB, free: 0.707 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008614/0.5058, allocations: 1.042 MB / 496.4 MB, free: 15.64 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001884/0.506, allocations: 37.81 kB / 496.4 MB, free: 15.61 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001086/0.5062, allocations: 75.41 kB / 496.5 MB, free: 15.53 MB / 378.7 MB Notification: Performance of SimCode: time 1.072e-06/0.5062, allocations: 3.938 kB / 496.5 MB, free: 15.53 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03581/0.542, allocations: 15.7 MB / 0.5002 GB, free: 15.54 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002409/0.5423, allocations: 133.2 kB / 0.5003 GB, free: 15.34 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.041/2.583, allocations: 0 / 0.5003 GB, free: 15.34 MB / 394.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREG.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREG.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREG_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DFFREG_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DFFREG.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREG.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREG_res.mat does not exist to compare? outputFormat=mat