Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGL.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.DFFREGL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DFFREGL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DFFREGL",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.00138/0.00138, 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.351/1.351, 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.0007483/0.0007482, allocations: 86.73 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.626e-05/2.635e-05, allocations: 4 kB / 322.5 MB, free: 17.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09361/0.09365, allocations: 47.57 MB / 370.1 MB, free: 1.625 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3336/0.4273, allocations: 82.15 MB / 452.3 MB, free: 11.1 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002746/0.4277, allocations: 69.09 kB / 452.3 MB, free: 11.06 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07148/0.4992, allocations: 37.71 MB / 490 MB, free: 6.875 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.4992, allocations: 0 / 490 MB, free: 6.875 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.677e-05/0.4992, allocations: 15.94 kB / 490.1 MB, free: 6.859 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.001097/0.5003, allocations: 1 MB / 491.1 MB, free: 5.77 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/0.5004, allocations: 16.03 kB / 491.1 MB, free: 5.754 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.466e-05/0.5005, allocations: 54.55 kB / 491.1 MB, free: 5.691 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001321/0.5006, allocations: 86.97 kB / 491.2 MB, free: 5.605 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006091/0.5013, allocations: 431.5 kB / 491.6 MB, free: 5.145 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.074e-05/0.5013, allocations: 19.94 kB / 491.7 MB, free: 5.125 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.754e-05/0.5014, allocations: 24 kB / 491.7 MB, free: 5.102 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000781/0.5022, allocations: 0.5061 MB / 492.2 MB, free: 4.586 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/0.5022, allocations: 0 / 492.2 MB, free: 4.586 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.537e-05/0.5022, allocations: 15.98 kB / 492.2 MB, free: 4.57 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.5023, allocations: 0 / 492.2 MB, free: 4.57 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004909/0.5028, allocations: 364.2 kB / 492.6 MB, free: 4.215 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00137/0.5041, allocations: 0.852 MB / 493.4 MB, free: 3.312 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006426/0.5048, allocations: 0.5101 MB / 493.9 MB, free: 2.793 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006122/0.5054, allocations: 0.4889 MB / 494.4 MB, free: 2.301 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.449e-05/0.5055, allocations: 4 kB / 494.4 MB, free: 2.297 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008164/0.5063, allocations: 0.6431 MB / 495 MB, free: 1.613 MB / 362.7 MB Notification: Performance of pre-optimization done (n=34): time 4.418e-06/0.5063, allocations: 0 / 495 MB, free: 1.613 MB / 362.7 MB Notification: Performance of matching and sorting (n=34): time 0.001648/0.5079, allocations: 1.186 MB / 496.2 MB, free: 388 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001601/0.5081, allocations: 283.3 kB / 496.5 MB, free: 48 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001367/0.5095, allocations: 1.027 MB / 497.5 MB, free: 15 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.793e-05/0.5096, allocations: 41.64 kB / 497.6 MB, free: 14.96 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001103/0.5097, allocations: 150 kB / 497.7 MB, free: 14.81 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.518e-05/0.5098, allocations: 75.17 kB / 497.8 MB, free: 14.73 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.21e-05/0.5098, allocations: 11.98 kB / 497.8 MB, free: 14.72 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.51, allocations: 346.8 kB / 498.2 MB, free: 14.38 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004619/0.5105, allocations: 348.2 kB / 498.5 MB, free: 14.04 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004591/0.5109, allocations: 360.4 kB / 498.8 MB, free: 13.68 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004774/0.5114, allocations: 496.9 kB / 499.3 MB, free: 13.16 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.5114, allocations: 0 / 499.3 MB, free: 13.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001451/0.5129, allocations: 1.122 MB / 0.4887 GB, free: 11.98 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001902/0.5131, allocations: 243.8 kB / 0.489 GB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.5131, allocations: 0 / 0.489 GB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.899e-05/0.5131, allocations: 0 / 0.489 GB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.529e-05/0.5132, allocations: 7.938 kB / 0.489 GB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.5132, allocations: 0 / 0.489 GB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003612/0.5135, allocations: 43.88 kB / 0.489 GB, free: 11.65 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001808/0.5137, allocations: 152.2 kB / 0.4891 GB, free: 11.5 MB / 378.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.0003851/0.5141, allocations: 410.7 kB / 0.4895 GB, free: 11.05 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000124/0.5143, allocations: 98.92 kB / 0.4896 GB, free: 10.96 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003694/0.5146, allocations: 147.8 kB / 0.4898 GB, free: 10.81 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.5146, allocations: 0 / 0.4898 GB, free: 10.81 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/0.5147, allocations: 4 kB / 0.4898 GB, free: 10.8 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.758e-06/0.5147, allocations: 11.98 kB / 0.4898 GB, free: 10.79 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002422/0.5171, allocations: 1.954 MB / 0.4917 GB, free: 8.738 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.5171, allocations: 0 / 0.4917 GB, free: 8.738 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.372e-05/0.5171, allocations: 4 kB / 0.4917 GB, free: 8.734 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.5172, allocations: 0 / 0.4917 GB, free: 8.734 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.971e-05/0.5172, allocations: 35.98 kB / 0.4917 GB, free: 8.699 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.5172, allocations: 0 / 0.4917 GB, free: 8.699 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.5172, allocations: 7.984 kB / 0.4917 GB, free: 8.691 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001686/0.5189, allocations: 1.373 MB / 0.4931 GB, free: 7.258 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000951/0.5199, allocations: 0.5582 MB / 0.4936 GB, free: 6.68 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001531/0.5201, allocations: 59.95 kB / 0.4937 GB, free: 6.621 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000312/0.5204, allocations: 43.81 kB / 0.4937 GB, free: 6.578 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000398/0.5208, allocations: 239.7 kB / 0.494 GB, free: 6.344 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000177/0.521, allocations: 159.9 kB / 0.4941 GB, free: 6.188 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001182/0.5222, allocations: 0.8539 MB / 0.4949 GB, free: 5.34 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5222, allocations: 0 / 0.4949 GB, free: 5.34 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004753/0.5227, allocations: 124 kB / 0.4951 GB, free: 5.219 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,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.002238/0.5249, allocations: 2.01 MB / 0.497 GB, free: 3.137 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001655/0.5266, allocations: 1.508 MB / 0.4985 GB, free: 1.543 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.5266, allocations: 0 / 0.4985 GB, free: 1.543 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009762/0.5276, allocations: 1.113 MB / 0.4996 GB, free: 352 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001164/0.5288, allocations: 292.2 kB / 0.4999 GB, free: 60 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003282/0.532, allocations: 1.88 MB / 0.5017 GB, free: 14.14 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007797/0.5328, allocations: 1.038 MB / 0.5027 GB, free: 13.07 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001686/0.533, allocations: 37.5 kB / 0.5027 GB, free: 13.03 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001051/0.5331, allocations: 83.41 kB / 0.5028 GB, free: 12.95 MB / 394.7 MB Notification: Performance of SimCode: time 9.32e-07/0.5332, allocations: 4 kB / 0.5028 GB, free: 12.95 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03001/0.5632, allocations: 16.46 MB / 0.5189 GB, free: 12.2 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002058/0.5634, allocations: 146.2 kB / 0.519 GB, free: 11.98 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.075/2.639, allocations: 0 / 0.519 GB, free: 11.98 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGL.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGL.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGL_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DFFREGL_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DFFREGL.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGL_res.mat does not exist to compare? outputFormat=mat