Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.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.DFFREG,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DFFREG",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREG,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DFFREG",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.001492/0.001492, allocations: 175.5 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.377/1.377, allocations: 221.3 MB / 235.5 MB, free: 2.965 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.0009586/0.0009587, allocations: 90.45 kB / 286.5 MB, free: 240 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.648e-05/3.65e-05, allocations: 7.984 kB / 343.9 MB, free: 4.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1005, allocations: 50.41 MB / 394.3 MB, free: 1.773 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3208/0.4213, allocations: 83.04 MB / 477.4 MB, free: 4.465 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002264/0.4216, allocations: 75.91 kB / 477.4 MB, free: 4.391 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05391/0.4755, allocations: 28.29 MB / 0.4939 GB, free: 8.164 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.694e-06/0.4755, allocations: 0 / 0.4939 GB, free: 8.164 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.94e-05/0.4756, allocations: 12 kB / 0.4939 GB, free: 8.152 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.00091/0.4765, allocations: 1.012 MB / 0.4949 GB, free: 7.051 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.4765, allocations: 12.03 kB / 0.4949 GB, free: 7.039 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.717e-05/0.4766, allocations: 58.55 kB / 0.4949 GB, free: 6.973 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001192/0.4768, allocations: 90.91 kB / 0.495 GB, free: 6.883 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005631/0.4773, allocations: 415.7 kB / 0.4954 GB, free: 6.438 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.731e-05/0.4774, allocations: 19.98 kB / 0.4954 GB, free: 6.418 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.726e-05/0.4774, allocations: 27.95 kB / 0.4955 GB, free: 6.391 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007289/0.4782, allocations: 0.5029 MB / 0.496 GB, free: 5.879 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.824e-06/0.4782, allocations: 0 / 0.496 GB, free: 5.879 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.634e-05/0.4783, allocations: 20 kB / 0.496 GB, free: 5.859 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.333e-06/0.4783, allocations: 7.984 kB / 0.496 GB, free: 5.852 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000498/0.4788, allocations: 360.1 kB / 0.4963 GB, free: 5.5 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001213/0.48, allocations: 0.8598 MB / 0.4972 GB, free: 4.586 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005844/0.4806, allocations: 0.4984 MB / 0.4977 GB, free: 4.078 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005507/0.4812, allocations: 0.4934 MB / 0.4981 GB, free: 3.582 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.202e-05/0.4812, allocations: 11.88 kB / 0.4982 GB, free: 3.57 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007209/0.4819, allocations: 0.6393 MB / 0.4988 GB, free: 2.891 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 1.854e-06/0.4819, allocations: 4 kB / 0.4988 GB, free: 2.887 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.001553/0.4835, allocations: 1.183 MB / 0.4999 GB, free: 1.656 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001579/0.4837, allocations: 287.2 kB / 0.5002 GB, free: 1.32 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001282/0.4849, allocations: 1.023 MB / 0.5012 GB, free: 292 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.455e-05/0.485, allocations: 41.7 kB / 0.5013 GB, free: 244 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.4851, allocations: 150 kB / 0.5014 GB, free: 92 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.923e-05/0.4852, allocations: 71.17 kB / 0.5015 GB, free: 20 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.064e-05/0.4853, allocations: 8 kB / 0.5015 GB, free: 12 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.4854, allocations: 354.9 kB / 0.5018 GB, free: 15.65 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004789/0.4859, allocations: 352.1 kB / 0.5021 GB, free: 15.31 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004537/0.4864, allocations: 352.5 kB / 0.5025 GB, free: 14.96 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005118/0.4869, allocations: 496.9 kB / 0.503 GB, free: 14.44 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.4869, allocations: 0 / 0.503 GB, free: 14.44 MB / 394.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001384/0.4883, allocations: 1.118 MB / 0.504 GB, free: 13.27 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001611/0.4885, allocations: 253 kB / 0.5043 GB, free: 12.98 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.4885, allocations: 0 / 0.5043 GB, free: 12.98 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.4885, allocations: 3.984 kB / 0.5043 GB, free: 12.98 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.661e-05/0.4885, allocations: 4 kB / 0.5043 GB, free: 12.97 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.802e-06/0.4885, allocations: 4 kB / 0.5043 GB, free: 12.97 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002873/0.4888, allocations: 39.88 kB / 0.5043 GB, free: 12.93 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001587/0.489, allocations: 148.2 kB / 0.5045 GB, free: 12.79 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.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.0003139/0.4893, allocations: 409.9 kB / 0.5049 GB, free: 12.34 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000103/0.4894, allocations: 94.91 kB / 0.505 GB, free: 12.25 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002311/0.4897, allocations: 155.8 kB / 0.5051 GB, free: 12.09 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.856e-06/0.4897, allocations: 4 kB / 0.5051 GB, free: 12.09 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.4897, allocations: 0 / 0.5051 GB, free: 12.09 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.4897, allocations: 0 / 0.5051 GB, free: 12.09 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002258/0.492, allocations: 1.95 MB / 0.507 GB, free: 10.04 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.492, allocations: 0 / 0.507 GB, free: 10.04 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.273e-05/0.492, allocations: 7.953 kB / 0.507 GB, free: 10.03 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.492, allocations: 7.984 kB / 0.507 GB, free: 10.02 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.759e-05/0.4921, allocations: 35.98 kB / 0.5071 GB, free: 9.984 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.4921, allocations: 4 kB / 0.5071 GB, free: 9.98 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.4921, allocations: 0 / 0.5071 GB, free: 9.98 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00158/0.4937, allocations: 1.369 MB / 0.5084 GB, free: 8.551 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000783/0.4945, allocations: 0.5543 MB / 0.5089 GB, free: 7.977 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001577/0.4947, allocations: 67.91 kB / 0.509 GB, free: 7.91 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002895/0.495, allocations: 31.89 kB / 0.509 GB, free: 7.879 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003733/0.4953, allocations: 243.7 kB / 0.5093 GB, free: 7.641 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001609/0.4955, allocations: 155.9 kB / 0.5094 GB, free: 7.488 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001054/0.4966, allocations: 0.8578 MB / 0.5103 GB, free: 6.637 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4966, allocations: 0 / 0.5103 GB, free: 6.637 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004239/0.497, allocations: 120 kB / 0.5104 GB, free: 6.52 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,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.002001/0.499, allocations: 2.005 MB / 0.5123 GB, free: 4.441 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0015/0.5005, allocations: 1.515 MB / 0.5138 GB, free: 2.84 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.5005, allocations: 0 / 0.5138 GB, free: 2.84 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009215/0.5015, allocations: 1.113 MB / 0.5149 GB, free: 1.641 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001105/0.5026, allocations: 296.7 kB / 0.5152 GB, free: 1.359 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002825/0.5054, allocations: 1.895 MB / 0.517 GB, free: 15.42 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006907/0.5061, allocations: 1.035 MB / 0.518 GB, free: 14.36 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001306/0.5063, allocations: 45.48 kB / 0.5181 GB, free: 14.31 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.128e-05/0.5064, allocations: 75.41 kB / 0.5182 GB, free: 14.23 MB / 410.7 MB Notification: Performance of SimCode: time 6.11e-07/0.5064, allocations: 0 / 0.5182 GB, free: 14.23 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02923/0.5356, allocations: 16.44 MB / 0.5342 GB, free: 13.63 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001649/0.5358, allocations: 146.3 kB / 0.5344 GB, free: 13.41 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.025/2.561, allocations: 3.938 kB / 0.5344 GB, free: 13.41 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DFFREG_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DFFREG.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG_res.mat does not exist to compare? outputFormat=mat