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.001066/0.001065, allocations: 172.2 kB / 14.1 MB, free: 1.223 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.391/1.391, allocations: 205.2 MB / 219.8 MB, free: 14.26 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.0008275/0.0008275, allocations: 90.69 kB / 268 MB, free: 14.09 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.63e-05/2.637e-05, allocations: 0 / 322.5 MB, free: 17.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08429/0.08433, allocations: 47.58 MB / 370.1 MB, free: 1.613 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.293/0.3773, allocations: 82.11 MB / 452.2 MB, free: 11.13 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001899/0.3776, allocations: 69.84 kB / 452.3 MB, free: 11.1 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05178/0.4293, allocations: 27.99 MB / 480.3 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4294, allocations: 3.938 kB / 480.3 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.131e-05/0.4294, allocations: 8 kB / 480.3 MB, free: 0.6406 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.001102/0.4305, allocations: 1.012 MB / 481.3 MB, free: 15.54 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.4306, allocations: 8.031 kB / 481.3 MB, free: 15.53 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.424e-05/0.4307, allocations: 58.55 kB / 481.4 MB, free: 15.46 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001289/0.4308, allocations: 90.97 kB / 481.5 MB, free: 15.37 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005572/0.4314, allocations: 431.4 kB / 481.9 MB, free: 14.91 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.855e-05/0.4315, allocations: 20 kB / 481.9 MB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.185e-05/0.4315, allocations: 24 kB / 481.9 MB, free: 14.87 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007414/0.4323, allocations: 0.5022 MB / 482.4 MB, free: 14.36 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.789e-06/0.4323, allocations: 0 / 482.4 MB, free: 14.36 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.676e-05/0.4324, allocations: 15.98 kB / 482.4 MB, free: 14.34 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.198e-05/0.4324, allocations: 4 kB / 482.4 MB, free: 14.34 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005505/0.4329, allocations: 352.2 kB / 482.8 MB, free: 14 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001292/0.4342, allocations: 0.8638 MB / 483.7 MB, free: 13.08 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006464/0.4349, allocations: 0.5023 MB / 484.2 MB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000587/0.4355, allocations: 0.4973 MB / 484.7 MB, free: 12.07 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.338e-05/0.4355, allocations: 4 kB / 484.7 MB, free: 12.07 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007418/0.4363, allocations: 0.6431 MB / 485.3 MB, free: 11.38 MB / 362.7 MB Notification: Performance of pre-optimization done (n=34): time 2.494e-06/0.4363, allocations: 0 / 485.3 MB, free: 11.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=34): time 0.001659/0.438, allocations: 1.186 MB / 486.5 MB, free: 10.15 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001494/0.4381, allocations: 275.3 kB / 486.8 MB, free: 9.824 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001381/0.4395, allocations: 1.027 MB / 487.8 MB, free: 8.785 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.269e-05/0.4396, allocations: 45.7 kB / 487.8 MB, free: 8.734 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.47e-05/0.4397, allocations: 146 kB / 488 MB, free: 8.59 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.439e-05/0.4398, allocations: 75.05 kB / 488 MB, free: 8.516 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.282e-05/0.4398, allocations: 15.98 kB / 488.1 MB, free: 8.5 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.44, allocations: 342.8 kB / 488.4 MB, free: 8.156 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004616/0.4404, allocations: 352.1 kB / 488.7 MB, free: 7.812 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004787/0.4409, allocations: 356.4 kB / 489.1 MB, free: 7.465 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005111/0.4414, allocations: 0.4891 MB / 489.6 MB, free: 6.934 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.4415, allocations: 0 / 489.6 MB, free: 6.934 MB / 362.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001677/0.4431, allocations: 1.118 MB / 490.7 MB, free: 5.766 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000192/0.4433, allocations: 247.8 kB / 490.9 MB, free: 5.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.852e-06/0.4434, allocations: 0 / 490.9 MB, free: 5.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.4434, allocations: 4 kB / 490.9 MB, free: 5.477 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.225e-05/0.4434, allocations: 0 / 490.9 MB, free: 5.477 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.4434, allocations: 0 / 490.9 MB, free: 5.477 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003605/0.4438, allocations: 47.81 kB / 491 MB, free: 5.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002039/0.444, allocations: 148.2 kB / 491.1 MB, free: 5.285 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.0004409/0.4445, allocations: 418.9 kB / 491.5 MB, free: 4.824 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000175/0.4447, allocations: 86.97 kB / 491.6 MB, free: 4.738 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004312/0.4451, allocations: 155.7 kB / 491.8 MB, free: 4.582 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.885e-06/0.4451, allocations: 4 kB / 491.8 MB, free: 4.578 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.4451, allocations: 0 / 491.8 MB, free: 4.578 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.199e-06/0.4451, allocations: 0 / 491.8 MB, free: 4.578 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002745/0.4479, allocations: 1.954 MB / 493.7 MB, free: 2.523 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.4479, allocations: 3.938 kB / 493.7 MB, free: 2.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.442e-05/0.4479, allocations: 8 kB / 493.7 MB, free: 2.512 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.763e-06/0.4479, allocations: 0 / 493.7 MB, free: 2.512 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.659e-05/0.448, allocations: 39.92 kB / 493.8 MB, free: 2.473 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.448, allocations: 0 / 493.8 MB, free: 2.473 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.448, allocations: 3.984 kB / 493.8 MB, free: 2.469 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001695/0.4497, allocations: 1.373 MB / 495.2 MB, free: 1.035 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008693/0.4506, allocations: 0.5543 MB / 495.7 MB, free: 472 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000152/0.4508, allocations: 67.95 kB / 495.8 MB, free: 404 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003044/0.4511, allocations: 31.97 kB / 495.8 MB, free: 372 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003718/0.4515, allocations: 239.7 kB / 496 MB, free: 132 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001723/0.4517, allocations: 152 kB / 496.2 MB, free: 15.98 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001116/0.4528, allocations: 0.8577 MB / 497.1 MB, free: 15.13 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4528, allocations: 0 / 497.1 MB, free: 15.13 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004261/0.4532, allocations: 128 kB / 497.2 MB, free: 15 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.002011/0.4552, allocations: 2.006 MB / 499.2 MB, free: 12.93 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00161/0.4569, allocations: 1.511 MB / 0.489 GB, free: 11.33 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.4569, allocations: 4 kB / 0.489 GB, free: 11.33 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009518/0.4579, allocations: 1.117 MB / 0.4901 GB, free: 10.12 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001158/0.459, allocations: 284.7 kB / 0.4903 GB, free: 9.848 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003213/0.4622, allocations: 1.888 MB / 0.4922 GB, free: 7.918 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007767/0.463, allocations: 1.042 MB / 0.4932 GB, free: 6.84 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002042/0.4633, allocations: 45.44 kB / 0.4932 GB, free: 6.793 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001006/0.4634, allocations: 75.41 kB / 0.4933 GB, free: 6.719 MB / 378.7 MB Notification: Performance of SimCode: time 1.282e-06/0.4634, allocations: 0 / 0.4933 GB, free: 6.719 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02806/0.4914, allocations: 16.46 MB / 0.5094 GB, free: 5.988 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001412/0.4916, allocations: 141.2 kB / 0.5095 GB, free: 5.766 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.076/2.567, allocations: 4.062 kB / 0.5095 GB, free: 5.762 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