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.001112/0.001112, allocations: 182.1 kB / 17.02 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.333/1.333, allocations: 205.4 MB / 223.1 MB, free: 9.113 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.0007735/0.0007734, allocations: 100 kB / 271.5 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002813/0.0002813, allocations: 4 kB / 328.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2271/0.2274, allocations: 47.56 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09241/0.3198, allocations: 82.24 MB / 458.2 MB, free: 14.4 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002094/0.3201, allocations: 75.89 kB / 458.2 MB, free: 14.32 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06675/0.3869, allocations: 37.51 MB / 495.7 MB, free: 8.824 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3869, allocations: 0 / 495.7 MB, free: 8.824 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.852e-05/0.3869, allocations: 8 kB / 495.7 MB, free: 8.816 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.001152/0.3881, allocations: 1.139 MB / 496.9 MB, free: 7.582 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.3881, allocations: 12.03 kB / 496.9 MB, free: 7.57 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.205e-05/0.3882, allocations: 54.55 kB / 496.9 MB, free: 7.508 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001189/0.3884, allocations: 90.97 kB / 497 MB, free: 7.418 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006243/0.389, allocations: 427.4 kB / 497.4 MB, free: 6.961 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.989e-05/0.389, allocations: 16 kB / 497.5 MB, free: 6.945 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.394e-05/0.3891, allocations: 31.94 kB / 497.5 MB, free: 6.914 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008258/0.3899, allocations: 0.5123 MB / 498 MB, free: 6.395 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.39, allocations: 0 / 498 MB, free: 6.395 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.681e-05/0.39, allocations: 15.98 kB / 498 MB, free: 6.379 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.183e-06/0.39, allocations: 4 kB / 498 MB, free: 6.375 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005305/0.3906, allocations: 368.1 kB / 498.4 MB, free: 6.016 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001399/0.392, allocations: 0.8638 MB / 499.3 MB, free: 5.102 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006619/0.3927, allocations: 0.5179 MB / 499.8 MB, free: 4.574 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.055e-05/0.3927, allocations: 4 kB / 499.8 MB, free: 4.57 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008872/0.3936, allocations: 0.6586 MB / 0.4887 GB, free: 3.871 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 1.753e-06/0.3936, allocations: 0 / 0.4887 GB, free: 3.871 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.002354/0.3959, allocations: 1.795 MB / 0.4905 GB, free: 1.973 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001567/0.3961, allocations: 279.3 kB / 0.4907 GB, free: 1.645 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001382/0.3975, allocations: 1.027 MB / 0.4917 GB, free: 0.6055 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.907e-05/0.3976, allocations: 53.69 kB / 0.4918 GB, free: 0.5469 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001009/0.3977, allocations: 153.9 kB / 0.4919 GB, free: 404 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.293e-05/0.3978, allocations: 75.09 kB / 0.492 GB, free: 328 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.279e-05/0.3978, allocations: 12 kB / 0.492 GB, free: 316 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.1821/0.58, allocations: 338.8 kB / 0.4923 GB, free: 107.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001197/0.5813, allocations: 345.9 kB / 0.4927 GB, free: 107.7 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007646/0.5821, allocations: 383.1 kB / 0.493 GB, free: 107.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006622/0.5827, allocations: 0.4978 MB / 0.4935 GB, free: 107.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.5827, allocations: 0.7188 kB / 0.4935 GB, free: 107.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.00171/0.5845, allocations: 1.12 MB / 0.4946 GB, free: 107.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001411/0.5846, allocations: 242.5 kB / 0.4948 GB, free: 107 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/0.5846, allocations: 7.984 kB / 0.4948 GB, free: 107 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.957e-05/0.5847, allocations: 1.062 kB / 0.4948 GB, free: 107 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.127e-05/0.5847, allocations: 3.969 kB / 0.4948 GB, free: 107 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.5847, allocations: 5.188 kB / 0.4949 GB, free: 107 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003457/0.5851, allocations: 40.09 kB / 0.4949 GB, free: 107 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002144/0.5853, allocations: 148.9 kB / 0.495 GB, free: 107 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.dFFREGL.delay.inertialDelaySensitive[2].y,$PRE.dFFREGL.delay.inertialDelaySensitive[1].y,$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,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,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 () * 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.0009993/0.5863, allocations: 0.7623 MB / 0.4958 GB, free: 106.6 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001449/0.5864, allocations: 93.59 kB / 0.4959 GB, free: 106.6 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002632/0.5867, allocations: 157.5 kB / 0.496 GB, free: 106.6 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.5867, allocations: 1.031 kB / 0.496 GB, free: 106.6 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.5867, allocations: 1.156 kB / 0.496 GB, free: 106.6 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.5867, allocations: 0.5625 kB / 0.496 GB, free: 106.6 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002565/0.5893, allocations: 1.966 MB / 0.4979 GB, free: 106 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.558e-06/0.5893, allocations: 7.406 kB / 0.4979 GB, free: 106 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.622e-05/0.5894, allocations: 7.141 kB / 0.498 GB, free: 106 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/0.5894, allocations: 0 / 0.498 GB, free: 106 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.378e-05/0.5894, allocations: 33.19 kB / 0.498 GB, free: 106 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.5895, allocations: 8.812 kB / 0.498 GB, free: 106 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.237e-06/0.5895, allocations: 3.375 kB / 0.498 GB, free: 106 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00187/0.5913, allocations: 1.388 MB / 0.4994 GB, free: 105.6 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009878/0.5923, allocations: 0.566 MB / 0.4999 GB, free: 105.4 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001548/0.5925, allocations: 57.47 kB / 0.5 GB, free: 105.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003642/0.5929, allocations: 35.56 kB / 0.5 GB, free: 105.4 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003996/0.5933, allocations: 239.1 kB / 0.5002 GB, free: 105.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001921/0.5935, allocations: 161.6 kB / 0.5004 GB, free: 105.4 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001201/0.5947, allocations: 0.8675 MB / 0.5012 GB, free: 105.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5947, allocations: 1 kB / 0.5012 GB, free: 105.1 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007105/0.5954, allocations: 124.3 kB / 0.5013 GB, free: 105.1 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) * 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.001826/0.5973, allocations: 2.026 MB / 0.5033 GB, free: 104.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001688/0.599, allocations: 1.531 MB / 0.5048 GB, free: 103.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.599, allocations: 0 / 0.5048 GB, free: 103.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008584/0.5998, allocations: 1.117 MB / 0.5059 GB, free: 102.4 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00108/0.6009, allocations: 281.9 kB / 0.5062 GB, free: 102.4 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006265/0.6072, allocations: 4.895 MB / 0.511 GB, free: 100 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006023/0.6079, allocations: 1.041 MB / 0.512 GB, free: 99.23 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002124/0.6081, allocations: 44.75 kB / 0.512 GB, free: 99.22 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.31e-05/0.6082, allocations: 76.5 kB / 0.5121 GB, free: 99.16 MB / 378.7 MB Notification: Performance of SimCode: time 1.383e-06/0.6082, allocations: 0 / 0.5121 GB, free: 99.16 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02548/0.6337, allocations: 16.45 MB / 0.5282 GB, free: 86.09 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001571/0.6339, allocations: 181.7 kB / 0.5283 GB, free: 85.84 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.248/2.882, allocations: 0 / 0.5283 GB, free: 85.84 MB / 378.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