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.001425/0.001425, allocations: 181.4 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.429/1.429, allocations: 205.4 MB / 223.1 MB, free: 9.035 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.0009266/0.0009266, allocations: 90.97 kB / 271.5 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003426/0.0003426, allocations: 4 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2425/0.2429, allocations: 47.57 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0872/0.3301, allocations: 82.21 MB / 458.1 MB, free: 14.45 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001823/0.3303, allocations: 71.97 kB / 458.2 MB, free: 14.38 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0518/0.3821, allocations: 27.82 MB / 486 MB, free: 2.594 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3822, allocations: 0 / 486 MB, free: 2.594 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.924e-05/0.3822, allocations: 12 kB / 486 MB, free: 2.582 MB / 362.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.001487/0.3837, allocations: 1.147 MB / 487.2 MB, free: 1.34 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.391e-05/0.3838, allocations: 8.031 kB / 487.2 MB, free: 1.332 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001251/0.3839, allocations: 54.55 kB / 487.2 MB, free: 1.27 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001601/0.3841, allocations: 90.97 kB / 487.3 MB, free: 1.18 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006706/0.3847, allocations: 427.5 kB / 487.7 MB, free: 0.7227 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.296e-05/0.3848, allocations: 20 kB / 487.7 MB, free: 0.7031 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.627e-05/0.3849, allocations: 24 kB / 487.8 MB, free: 0.6797 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008086/0.3857, allocations: 0.5123 MB / 488.3 MB, free: 164 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.3857, allocations: 0 / 488.3 MB, free: 164 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.718e-05/0.3858, allocations: 15.98 kB / 488.3 MB, free: 148 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.3858, allocations: 4 kB / 488.3 MB, free: 144 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005782/0.3864, allocations: 360.2 kB / 488.7 MB, free: 15.79 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001536/0.3879, allocations: 0.8676 MB / 489.5 MB, free: 14.87 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006759/0.3886, allocations: 0.5101 MB / 490 MB, free: 14.35 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.118e-05/0.3886, allocations: 0 / 490 MB, free: 14.35 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000828/0.3895, allocations: 0.6664 MB / 490.7 MB, free: 13.64 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 1.773e-06/0.3895, allocations: 3.938 kB / 490.7 MB, free: 13.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.002301/0.3918, allocations: 1.787 MB / 492.5 MB, free: 11.75 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001483/0.392, allocations: 279.3 kB / 492.8 MB, free: 11.42 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001572/0.3935, allocations: 1.031 MB / 493.8 MB, free: 10.38 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.019e-05/0.3936, allocations: 45.69 kB / 493.8 MB, free: 10.33 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001203/0.3937, allocations: 146 kB / 494 MB, free: 10.18 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001125/0.3939, allocations: 87.08 kB / 494.1 MB, free: 10.1 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.525e-05/0.3939, allocations: 12 kB / 494.1 MB, free: 10.09 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.3941, allocations: 342.8 kB / 494.4 MB, free: 9.742 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005046/0.3946, allocations: 352.1 kB / 494.8 MB, free: 9.398 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005296/0.3951, allocations: 383.1 kB / 495.1 MB, free: 9.016 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005213/0.3957, allocations: 0.4958 MB / 495.6 MB, free: 8.477 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.3957, allocations: 0 / 495.6 MB, free: 8.477 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001483/0.3972, allocations: 1.129 MB / 496.8 MB, free: 7.297 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001884/0.3974, allocations: 243.9 kB / 497 MB, free: 7.016 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.3974, allocations: 4 kB / 497 MB, free: 7.012 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.907e-05/0.3974, allocations: 3.984 kB / 497 MB, free: 7.008 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.488e-05/0.3974, allocations: 7.938 kB / 497 MB, free: 7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.463e-06/0.3975, allocations: 0 / 497 MB, free: 7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003355/0.3978, allocations: 39.81 kB / 497 MB, free: 6.961 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001872/0.398, allocations: 152.2 kB / 497.2 MB, free: 6.812 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 40 ($PRE.dFFREG.delay.inertialDelaySensitive[2].y,$PRE.dFFREG.delay.inertialDelaySensitive[1].y,$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,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,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 () * Number of clocked 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.0008395/0.3988, allocations: 0.7757 MB / 498 MB, free: 5.984 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001496/0.399, allocations: 90.92 kB / 498.1 MB, free: 5.895 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002509/0.3993, allocations: 147.7 kB / 498.2 MB, free: 5.742 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.962e-06/0.3993, allocations: 7.984 kB / 498.2 MB, free: 5.734 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.221e-06/0.3993, allocations: 0 / 498.2 MB, free: 5.734 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.3993, allocations: 0 / 498.2 MB, free: 5.734 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002555/0.4019, allocations: 1.966 MB / 0.4885 GB, free: 3.668 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.4019, allocations: 3.953 kB / 0.4885 GB, free: 3.664 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.103e-05/0.4019, allocations: 0 / 0.4885 GB, free: 3.664 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.4019, allocations: 0 / 0.4885 GB, free: 3.664 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.633e-05/0.402, allocations: 35.98 kB / 0.4885 GB, free: 3.629 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.402, allocations: 0 / 0.4885 GB, free: 3.629 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.402, allocations: 0 / 0.4885 GB, free: 3.629 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001776/0.4038, allocations: 1.397 MB / 0.4899 GB, free: 2.172 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008771/0.4047, allocations: 0.5622 MB / 0.4904 GB, free: 1.59 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001561/0.4048, allocations: 55.97 kB / 0.4905 GB, free: 1.535 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003011/0.4051, allocations: 43.81 kB / 0.4905 GB, free: 1.492 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003986/0.4055, allocations: 247.7 kB / 0.4907 GB, free: 1.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001763/0.4057, allocations: 151.9 kB / 0.4909 GB, free: 1.102 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001186/0.4069, allocations: 0.8616 MB / 0.4917 GB, free: 252 kB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4069, allocations: 4 kB / 0.4917 GB, free: 248 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005018/0.4074, allocations: 124 kB / 0.4918 GB, free: 124 kB / 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) * Number of clocked states: 0 () * 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.1843/0.5918, allocations: 2.016 MB / 0.4938 GB, free: 106.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001764/0.5936, allocations: 1.532 MB / 0.4953 GB, free: 106.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.5936, allocations: 3.625 kB / 0.4953 GB, free: 106.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008639/0.5944, allocations: 1.108 MB / 0.4964 GB, free: 105.8 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001028/0.5955, allocations: 287.9 kB / 0.4967 GB, free: 105.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006096/0.6016, allocations: 4.9 MB / 0.5015 GB, free: 104.3 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005561/0.6022, allocations: 1.046 MB / 0.5025 GB, free: 103.6 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001446/0.6023, allocations: 37.81 kB / 0.5025 GB, free: 103.6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.525e-05/0.6024, allocations: 75.88 kB / 0.5026 GB, free: 103.6 MB / 378.7 MB Notification: Performance of SimCode: time 8.21e-07/0.6024, allocations: 0 / 0.5026 GB, free: 103.6 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02385/0.6263, allocations: 16.44 MB / 0.5186 GB, free: 95.77 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001347/0.6264, allocations: 172.6 kB / 0.5188 GB, free: 95.53 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.107/2.733, allocations: 7.938 kB / 0.5188 GB, free: 95.52 MB / 378.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