Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREG.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.DFFREG,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DFFREG",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREG,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DFFREG",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.002181/0.00218, allocations: 179.6 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.071/2.071, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001855/0.001855, allocations: 95.94 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.325e-05/2.336e-05, allocations: 4 kB / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3331/0.3331, allocations: 47.56 MB / 362.4 MB, free: 45.86 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1326/0.4658, allocations: 81.46 MB / 443.9 MB, free: 4.844 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002441/0.4661, allocations: 67.95 kB / 444 MB, free: 4.777 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.09881/0.565, allocations: 27.79 MB / 471.7 MB, free: 9.102 MB / 363.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.565, allocations: 4 kB / 471.8 MB, free: 9.098 MB / 363.1 MB Notification: Performance of Transformations before backend: time 3.466e-05/0.5651, allocations: 12 kB / 471.8 MB, free: 9.086 MB / 363.1 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.001587/0.5667, allocations: 1.014 MB / 472.8 MB, free: 7.984 MB / 363.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.526e-05/0.5667, allocations: 12.03 kB / 472.8 MB, free: 7.973 MB / 363.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002775/0.567, allocations: 90.97 kB / 472.9 MB, free: 7.883 MB / 363.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001003/0.568, allocations: 423.5 kB / 473.3 MB, free: 7.426 MB / 363.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.711e-05/0.5681, allocations: 16 kB / 473.3 MB, free: 7.41 MB / 363.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001131/0.5682, allocations: 20 kB / 473.3 MB, free: 7.391 MB / 363.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008886/0.5691, allocations: 348.1 kB / 473.7 MB, free: 7.047 MB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001151/0.5703, allocations: 494.3 kB / 474.1 MB, free: 6.559 MB / 363.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.484e-05/0.5704, allocations: 3.938 kB / 474.2 MB, free: 6.555 MB / 363.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.053e-05/0.5705, allocations: 15.97 kB / 474.2 MB, free: 6.539 MB / 363.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.261e-05/0.5705, allocations: 4 kB / 474.2 MB, free: 6.535 MB / 363.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002219/0.5727, allocations: 0.8172 MB / 475 MB, free: 5.68 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001082/0.5738, allocations: 0.4945 MB / 475.5 MB, free: 5.176 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009709/0.5749, allocations: 481.8 kB / 476 MB, free: 4.703 MB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.839e-05/0.5749, allocations: 7.938 kB / 476 MB, free: 4.695 MB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001307/0.5762, allocations: 0.6548 MB / 476.6 MB, free: 4 MB / 363.1 MB Notification: Performance of pre-optimization done (n=34): time 3.777e-06/0.5763, allocations: 0 / 476.6 MB, free: 4 MB / 363.1 MB Notification: Performance of matching and sorting (n=34): time 0.002416/0.5787, allocations: 0.9133 MB / 477.5 MB, free: 3.082 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002439/0.579, allocations: 275.3 kB / 477.8 MB, free: 2.758 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002388/0.5814, allocations: 0.9918 MB / 478.8 MB, free: 1.762 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002099/0.5816, allocations: 41.69 kB / 478.8 MB, free: 1.715 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000181/0.5818, allocations: 200.4 kB / 479 MB, free: 1.516 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001898/0.582, allocations: 79.05 kB / 479.1 MB, free: 1.438 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.709e-05/0.5821, allocations: 11.98 kB / 479.1 MB, free: 1.426 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.5823, allocations: 326.8 kB / 479.4 MB, free: 1.098 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000792/0.5831, allocations: 336.2 kB / 479.8 MB, free: 0.7695 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007589/0.5839, allocations: 336.5 kB / 480.1 MB, free: 452 kB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005899/0.5845, allocations: 245.4 kB / 480.3 MB, free: 208 kB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.5845, allocations: 0 / 480.3 MB, free: 208 kB / 363.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002175/0.5867, allocations: 0.8409 MB / 481.2 MB, free: 15.36 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002762/0.587, allocations: 239.9 kB / 481.4 MB, free: 15.08 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.587, allocations: 0 / 481.4 MB, free: 15.08 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.26e-05/0.5871, allocations: 0 / 481.4 MB, free: 15.08 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.541e-05/0.5871, allocations: 15.92 kB / 481.4 MB, free: 15.06 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.898e-06/0.5871, allocations: 3.984 kB / 481.4 MB, free: 15.06 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005995/0.5878, allocations: 31.89 kB / 481.5 MB, free: 15.03 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002938/0.5881, allocations: 152.2 kB / 481.6 MB, free: 14.88 MB / 379.1 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.0006401/0.5887, allocations: 410 kB / 482 MB, free: 14.43 MB / 379.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002477/0.5912, allocations: 0.9728 MB / 483 MB, free: 13.45 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000213/0.5915, allocations: 94.97 kB / 483.1 MB, free: 13.35 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005282/0.592, allocations: 148.1 kB / 483.2 MB, free: 13.21 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.583e-06/0.592, allocations: 0 / 483.2 MB, free: 13.21 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.579e-06/0.5921, allocations: 7.984 kB / 483.2 MB, free: 13.2 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.5921, allocations: 0 / 483.2 MB, free: 13.2 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003751/0.5958, allocations: 1.611 MB / 484.8 MB, free: 11.54 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.483e-06/0.5959, allocations: 0 / 484.8 MB, free: 11.54 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.153e-05/0.596, allocations: 8 kB / 484.8 MB, free: 11.54 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.504e-06/0.596, allocations: 3.938 kB / 484.8 MB, free: 11.53 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001193/0.5961, allocations: 43.97 kB / 484.9 MB, free: 11.49 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.5961, allocations: 0 / 484.9 MB, free: 11.49 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.5961, allocations: 0 / 484.9 MB, free: 11.49 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002555/0.5987, allocations: 1.072 MB / 486 MB, free: 10.4 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001679/0.6004, allocations: 0.5581 MB / 486.5 MB, free: 9.82 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002936/0.6008, allocations: 63.95 kB / 486.6 MB, free: 9.758 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005613/0.6013, allocations: 31.98 kB / 486.6 MB, free: 9.727 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006903/0.602, allocations: 239.7 kB / 486.8 MB, free: 9.492 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000278/0.6023, allocations: 163.8 kB / 487 MB, free: 9.332 MB / 379.1 MB Notification: Performance of sorting global known variables: time 0.001916/0.6043, allocations: 0.8187 MB / 487.8 MB, free: 8.516 MB / 379.1 MB Notification: Performance of sort global known variables: time 1.252e-06/0.6043, allocations: 0 / 487.8 MB, free: 8.516 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.0009136/0.6052, allocations: 116 kB / 487.9 MB, free: 8.402 MB / 379.1 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.003451/0.6087, allocations: 1.721 MB / 489.7 MB, free: 6.656 MB / 379.1 MB Notification: Performance of simCode: created initialization part: time 0.002968/0.6117, allocations: 1.472 MB / 491.1 MB, free: 5.098 MB / 379.1 MB Notification: Performance of simCode: created event and clocks part: time 7.894e-06/0.6118, allocations: 3.938 kB / 491.1 MB, free: 5.094 MB / 379.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00181/0.6136, allocations: 1.097 MB / 492.2 MB, free: 3.91 MB / 379.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001976/0.6157, allocations: 273.1 kB / 492.5 MB, free: 3.648 MB / 379.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005282/0.621, allocations: 1.937 MB / 494.4 MB, free: 1.66 MB / 379.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001177/0.6222, allocations: 1.039 MB / 495.5 MB, free: 0.5977 MB / 379.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001679/0.6224, allocations: 79.41 kB / 495.6 MB, free: 0.5195 MB / 379.1 MB Notification: Performance of SimCode: time 1.152e-06/0.6224, allocations: 0 / 495.6 MB, free: 0.5195 MB / 379.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.95/3.572, allocations: 9.44 MB / 0.4932 GB, free: 6.945 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREG.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREG.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREG_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DFFREG_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DFFREG.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREG.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREG_res.mat does not exist to compare? outputFormat=mat