Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DFFREGL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DFFREGL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001331/0.001331, allocations: 175 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.479/1.479, allocations: 221.3 MB / 235.5 MB, free: 2.918 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008078/0.0008081, allocations: 97.83 kB / 286.5 MB, free: 180 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.58e-05/2.584e-05, allocations: 0 / 343.9 MB, free: 4.215 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1102, allocations: 50.4 MB / 394.3 MB, free: 1.77 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4353/0.5456, allocations: 83.08 MB / 477.4 MB, free: 4.426 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002167/0.5458, allocations: 71.95 kB / 477.5 MB, free: 4.355 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07401/0.6199, allocations: 38.07 MB / 0.5035 GB, free: 14.3 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.6199, allocations: 0 / 0.5035 GB, free: 14.3 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.134e-05/0.6199, allocations: 20 kB / 0.5035 GB, free: 14.28 MB / 394.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.001429/0.6214, allocations: 1.009 MB / 0.5045 GB, free: 13.18 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.726e-05/0.6214, allocations: 12.03 kB / 0.5045 GB, free: 13.17 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001502/0.6216, allocations: 54.55 kB / 0.5045 GB, free: 13.11 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002323/0.6218, allocations: 86.97 kB / 0.5046 GB, free: 13.02 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007787/0.6226, allocations: 411.7 kB / 0.505 GB, free: 12.58 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.457e-05/0.6227, allocations: 23.98 kB / 0.505 GB, free: 12.56 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.739e-05/0.6228, allocations: 24 kB / 0.5051 GB, free: 12.54 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008228/0.6236, allocations: 0.5146 MB / 0.5056 GB, free: 12.01 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.6236, allocations: 4 kB / 0.5056 GB, free: 12.01 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.258e-05/0.6237, allocations: 15.98 kB / 0.5056 GB, free: 11.99 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.062e-06/0.6237, allocations: 3.938 kB / 0.5056 GB, free: 11.99 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005939/0.6243, allocations: 360.1 kB / 0.5059 GB, free: 11.64 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001883/0.6262, allocations: 0.856 MB / 0.5068 GB, free: 10.73 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007307/0.627, allocations: 0.51 MB / 0.5073 GB, free: 10.21 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006342/0.6276, allocations: 496.7 kB / 0.5077 GB, free: 9.723 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.786e-05/0.6276, allocations: 4 kB / 0.5077 GB, free: 9.719 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008744/0.6285, allocations: 0.647 MB / 0.5084 GB, free: 9.031 MB / 394.7 MB Notification: Performance of pre-optimization done (n=34): time 3.456e-06/0.6285, allocations: 0 / 0.5084 GB, free: 9.031 MB / 394.7 MB Notification: Performance of matching and sorting (n=34): time 0.001738/0.6303, allocations: 1.175 MB / 0.5095 GB, free: 7.809 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001708/0.6305, allocations: 283.2 kB / 0.5098 GB, free: 7.477 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00157/0.632, allocations: 1.019 MB / 0.5108 GB, free: 6.445 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.66e-05/0.6321, allocations: 45.69 kB / 0.5108 GB, free: 6.395 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001116/0.6322, allocations: 153.9 kB / 0.511 GB, free: 6.242 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001015/0.6323, allocations: 75.16 kB / 0.5111 GB, free: 6.168 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.241e-05/0.6324, allocations: 16 kB / 0.5111 GB, free: 6.152 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.6325, allocations: 350.8 kB / 0.5114 GB, free: 5.801 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004709/0.633, allocations: 344.2 kB / 0.5117 GB, free: 5.465 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004675/0.6335, allocations: 352.5 kB / 0.5121 GB, free: 5.121 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005035/0.634, allocations: 496.9 kB / 0.5125 GB, free: 4.594 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.634, allocations: 3.938 kB / 0.5125 GB, free: 4.59 MB / 394.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001415/0.6354, allocations: 1.122 MB / 0.5136 GB, free: 3.418 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001676/0.6356, allocations: 241.4 kB / 0.5139 GB, free: 3.141 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.451e-06/0.6356, allocations: 0 / 0.5139 GB, free: 3.141 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.6357, allocations: 7.953 kB / 0.5139 GB, free: 3.133 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.908e-05/0.6357, allocations: 7.984 kB / 0.5139 GB, free: 3.125 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.6357, allocations: 0 / 0.5139 GB, free: 3.125 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002919/0.636, allocations: 47.7 kB / 0.5139 GB, free: 3.078 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001686/0.6362, allocations: 152.2 kB / 0.5141 GB, free: 2.93 MB / 394.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.dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[1].x,$PRE.dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].y_old,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGL.delay.inertialDelaySensitive[2].x,dFFREGL.delay.inertialDelaySensitive[2].x,$PRE.dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].y_old,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGL.dFFR.reset,dFFREGL.dFFR.reset,$PRE.dFFREGL.dFFR.clock,dFFREGL.dFFR.clock,dFFREGL.dFFR.dataIn[1],dFFREGL.dFFR.dataIn[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.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.0004129/0.6366, allocations: 410 kB / 0.5145 GB, free: 2.48 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001225/0.6367, allocations: 94.97 kB / 0.5146 GB, free: 2.387 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002528/0.637, allocations: 151.8 kB / 0.5147 GB, free: 2.23 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.637, allocations: 3.953 kB / 0.5147 GB, free: 2.227 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.637, allocations: 0 / 0.5147 GB, free: 2.227 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.637, allocations: 0 / 0.5147 GB, free: 2.227 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002372/0.6394, allocations: 1.946 MB / 0.5166 GB, free: 184 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.6394, allocations: 0 / 0.5166 GB, free: 184 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.332e-05/0.6394, allocations: 7.984 kB / 0.5166 GB, free: 176 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.6394, allocations: 4 kB / 0.5166 GB, free: 172 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.637e-05/0.6395, allocations: 35.94 kB / 0.5167 GB, free: 136 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.6395, allocations: 4 kB / 0.5167 GB, free: 132 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.6395, allocations: 0 / 0.5167 GB, free: 132 kB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001683/0.6412, allocations: 1.365 MB / 0.518 GB, free: 14.7 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008383/0.6421, allocations: 0.5621 MB / 0.5185 GB, free: 14.12 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001548/0.6422, allocations: 55.97 kB / 0.5186 GB, free: 14.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002866/0.6425, allocations: 47.81 kB / 0.5186 GB, free: 14.02 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004108/0.643, allocations: 243.7 kB / 0.5189 GB, free: 13.78 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001659/0.6431, allocations: 159.9 kB / 0.519 GB, free: 13.62 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001097/0.6442, allocations: 0.85 MB / 0.5199 GB, free: 12.78 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.6443, allocations: 0 / 0.5199 GB, free: 12.78 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000415/0.6447, allocations: 124 kB / 0.52 GB, free: 12.66 MB / 410.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,dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].y_old,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].t_next,dFFREGL.delay.inertialDelaySensitive[2].x,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].y_old,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].t_next,dFFREGL.dFFR.reset,dFFREGL.dFFR.clock,dFFREGL.dFFR.dataIn[1],dFFREGL.dFFR.dataIn[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.next_assign_val[2]) * Number of discrete states: 32 (data_1.y,reset.y,data_0.y,clock.y,dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.next_assign_val[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.clock,dFFREGL.dFFR.reset,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].t_next,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].t_next,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGL.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.002079/0.6468, allocations: 2.001 MB / 0.5219 GB, free: 10.59 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001571/0.6483, allocations: 1.52 MB / 0.5234 GB, free: 8.984 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.6484, allocations: 0 / 0.5234 GB, free: 8.984 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001008/0.6494, allocations: 1.109 MB / 0.5245 GB, free: 7.789 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001161/0.6505, allocations: 308.4 kB / 0.5248 GB, free: 7.492 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002844/0.6534, allocations: 1.88 MB / 0.5266 GB, free: 5.57 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007286/0.6541, allocations: 1.042 MB / 0.5276 GB, free: 4.496 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.000119/0.6543, allocations: 33.52 kB / 0.5277 GB, free: 4.465 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.657e-05/0.6544, allocations: 83.41 kB / 0.5278 GB, free: 4.383 MB / 410.7 MB Notification: Performance of SimCode: time 6.01e-07/0.6544, allocations: 0 / 0.5278 GB, free: 4.383 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02877/0.6832, allocations: 16.45 MB / 0.5438 GB, free: 3.785 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002086/0.6834, allocations: 146.2 kB / 0.544 GB, free: 3.562 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.962/2.646, allocations: 4 kB / 0.544 GB, free: 3.559 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DFFREGL_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DFFREGL.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGL_res.mat does not exist to compare? outputFormat=mat