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.002674/0.002674, allocations: 176.4 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.575/1.575, allocations: 221.5 MB / 230.3 MB, free: 7.574 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.0008909/0.0008908, allocations: 89.98 kB / 281.2 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.658e-05/1.653e-05, allocations: 4 kB / 337.1 MB, free: 9.945 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1005, allocations: 50.42 MB / 387.6 MB, free: 7.48 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3142/0.4147, allocations: 82.41 MB / 470 MB, free: 12.37 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002328/0.415, allocations: 63.97 kB / 470 MB, free: 12.31 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07041/0.4855, allocations: 37.84 MB / 0.496 GB, free: 6.512 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.163e-06/0.4855, allocations: 0 / 0.496 GB, free: 6.512 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.857e-05/0.4855, allocations: 8 kB / 0.496 GB, free: 6.504 MB / 378.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.0009418/0.4865, allocations: 1.016 MB / 0.497 GB, free: 5.398 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.4865, allocations: 8.031 kB / 0.497 GB, free: 5.391 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001325/0.4867, allocations: 94.95 kB / 0.4971 GB, free: 5.297 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005478/0.4872, allocations: 415.7 kB / 0.4975 GB, free: 4.844 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.84e-05/0.4873, allocations: 16 kB / 0.4975 GB, free: 4.828 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.192e-05/0.4873, allocations: 23.98 kB / 0.4975 GB, free: 4.805 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004724/0.4878, allocations: 340.2 kB / 0.4978 GB, free: 4.469 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006546/0.4885, allocations: 494.2 kB / 0.4983 GB, free: 3.98 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.4885, allocations: 3.984 kB / 0.4983 GB, free: 3.977 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.393e-05/0.4886, allocations: 8 kB / 0.4983 GB, free: 3.969 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.4886, allocations: 7.938 kB / 0.4983 GB, free: 3.961 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00118/0.4898, allocations: 0.8132 MB / 0.4991 GB, free: 3.109 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005249/0.4903, allocations: 0.4945 MB / 0.4996 GB, free: 2.605 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004811/0.4908, allocations: 488.7 kB / 0.5001 GB, free: 2.125 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.232e-05/0.4908, allocations: 3.984 kB / 0.5001 GB, free: 2.121 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000678/0.4915, allocations: 0.6587 MB / 0.5007 GB, free: 1.422 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 2.555e-06/0.4915, allocations: 0 / 0.5007 GB, free: 1.422 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.001338/0.4928, allocations: 0.9016 MB / 0.5016 GB, free: 0.5156 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001439/0.493, allocations: 283.3 kB / 0.5019 GB, free: 188 kB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001275/0.4943, allocations: 0.9879 MB / 0.5028 GB, free: 15.19 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.077e-05/0.4944, allocations: 41.7 kB / 0.5029 GB, free: 15.14 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001082/0.4945, allocations: 150 kB / 0.503 GB, free: 14.99 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.723e-05/0.4946, allocations: 71.17 kB / 0.5031 GB, free: 14.92 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.885e-05/0.4946, allocations: 12 kB / 0.5031 GB, free: 14.91 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.4948, allocations: 346.8 kB / 0.5034 GB, free: 14.56 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004177/0.4952, allocations: 344.1 kB / 0.5037 GB, free: 14.23 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004042/0.4956, allocations: 336.4 kB / 0.5041 GB, free: 13.9 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003009/0.4959, allocations: 241 kB / 0.5043 GB, free: 13.66 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.4959, allocations: 4 kB / 0.5043 GB, free: 13.66 MB / 394.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001186/0.4971, allocations: 0.8526 MB / 0.5051 GB, free: 12.8 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001723/0.4973, allocations: 241.1 kB / 0.5054 GB, free: 12.52 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.4973, allocations: 0 / 0.5054 GB, free: 12.52 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.4974, allocations: 4 kB / 0.5054 GB, free: 12.52 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.189e-05/0.4974, allocations: 7.922 kB / 0.5054 GB, free: 12.51 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.875e-06/0.4974, allocations: 4 kB / 0.5054 GB, free: 12.51 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000304/0.4977, allocations: 47.72 kB / 0.5054 GB, free: 12.46 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001581/0.4979, allocations: 148.2 kB / 0.5056 GB, free: 12.32 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.0003353/0.4982, allocations: 410 kB / 0.506 GB, free: 11.86 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00133/0.4996, allocations: 0.9846 MB / 0.5069 GB, free: 10.87 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001073/0.4997, allocations: 87.06 kB / 0.507 GB, free: 10.79 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003467/0.5, allocations: 148.1 kB / 0.5071 GB, free: 10.64 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.5001, allocations: 7.938 kB / 0.5071 GB, free: 10.63 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.5001, allocations: 0 / 0.5071 GB, free: 10.63 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.5001, allocations: 0 / 0.5071 GB, free: 10.63 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002031/0.5021, allocations: 1.619 MB / 0.5087 GB, free: 8.969 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.075e-06/0.5021, allocations: 0 / 0.5087 GB, free: 8.969 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.487e-05/0.5022, allocations: 0 / 0.5087 GB, free: 8.969 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.733e-06/0.5022, allocations: 3.984 kB / 0.5087 GB, free: 8.965 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.375e-05/0.5022, allocations: 35.98 kB / 0.5088 GB, free: 8.93 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.048e-06/0.5022, allocations: 3.953 kB / 0.5088 GB, free: 8.926 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.5022, allocations: 0 / 0.5088 GB, free: 8.926 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001355/0.5036, allocations: 1.072 MB / 0.5098 GB, free: 7.836 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008612/0.5045, allocations: 0.562 MB / 0.5104 GB, free: 7.254 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001675/0.5047, allocations: 59.95 kB / 0.5104 GB, free: 7.195 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003406/0.505, allocations: 27.98 kB / 0.5104 GB, free: 7.168 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000428/0.5054, allocations: 247.7 kB / 0.5107 GB, free: 6.926 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001661/0.5056, allocations: 151.9 kB / 0.5108 GB, free: 6.777 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001119/0.5067, allocations: 0.8226 MB / 0.5116 GB, free: 5.957 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5068, allocations: 0 / 0.5116 GB, free: 5.957 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005027/0.5073, allocations: 116 kB / 0.5117 GB, free: 5.844 MB / 394.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.001799/0.5091, allocations: 1.721 MB / 0.5134 GB, free: 4.098 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001454/0.5105, allocations: 1.477 MB / 0.5149 GB, free: 2.535 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.5106, allocations: 4 kB / 0.5149 GB, free: 2.531 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009885/0.5116, allocations: 1.094 MB / 0.5159 GB, free: 1.352 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001304/0.5129, allocations: 292.3 kB / 0.5162 GB, free: 1.07 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003048/0.5159, allocations: 1.869 MB / 0.518 GB, free: 15.16 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007892/0.5167, allocations: 1.039 MB / 0.5191 GB, free: 14.09 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001767/0.5169, allocations: 41.81 kB / 0.5191 GB, free: 14.05 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.489e-05/0.517, allocations: 75.42 kB / 0.5192 GB, free: 13.98 MB / 410.7 MB Notification: Performance of SimCode: time 9.82e-07/0.517, allocations: 0 / 0.5192 GB, free: 13.98 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03526/0.5523, allocations: 15.72 MB / 0.5345 GB, free: 14.05 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001956/0.5526, allocations: 130.5 kB / 0.5346 GB, free: 13.86 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.04/2.592, allocations: 0 / 0.5346 GB, free: 13.86 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