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.001547/0.001547, allocations: 188.4 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.016/2.016, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001207/0.001207, allocations: 92.42 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004083/0.0004083, allocations: 8 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3328/0.3333, allocations: 47.56 MB / 374.6 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1349/0.4682, allocations: 82.21 MB / 456.8 MB, free: 14.43 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002847/0.4686, allocations: 71.91 kB / 456.9 MB, free: 14.36 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09682/0.5654, allocations: 27.82 MB / 484.7 MB, free: 2.574 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.765e-06/0.5655, allocations: 0 / 484.7 MB, free: 2.574 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.042e-05/0.5655, allocations: 8 kB / 484.7 MB, free: 2.566 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.001922/0.5675, allocations: 1.139 MB / 485.9 MB, free: 1.332 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.46e-05/0.5675, allocations: 8.031 kB / 485.9 MB, free: 1.324 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000196/0.5677, allocations: 62.48 kB / 485.9 MB, free: 1.254 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002182/0.568, allocations: 98.91 kB / 486 MB, free: 1.156 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009276/0.5689, allocations: 423.5 kB / 486.5 MB, free: 0.7031 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.153e-05/0.569, allocations: 19.98 kB / 486.5 MB, free: 0.6836 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001676/0.5692, allocations: 24 kB / 486.5 MB, free: 0.6602 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00225/0.5715, allocations: 0.5123 MB / 487 MB, free: 144 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/0.5715, allocations: 0 / 487 MB, free: 144 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.513e-05/0.5717, allocations: 16 kB / 487 MB, free: 128 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/0.5717, allocations: 0 / 487 MB, free: 128 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001089/0.5728, allocations: 368.1 kB / 487.4 MB, free: 15.77 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002147/0.575, allocations: 0.8599 MB / 488.2 MB, free: 14.86 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001314/0.5763, allocations: 0.5101 MB / 488.8 MB, free: 14.34 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.947e-05/0.5764, allocations: 8 kB / 488.8 MB, free: 14.33 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001492/0.5779, allocations: 0.6663 MB / 489.4 MB, free: 13.62 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 3.707e-06/0.5779, allocations: 0 / 489.4 MB, free: 13.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.004443/0.5824, allocations: 1.783 MB / 491.2 MB, free: 11.73 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002389/0.5827, allocations: 275.3 kB / 491.5 MB, free: 11.41 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0026/0.5853, allocations: 1.042 MB / 492.5 MB, free: 10.36 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002371/0.5856, allocations: 45.69 kB / 492.6 MB, free: 10.3 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001648/0.5858, allocations: 204.3 kB / 492.8 MB, free: 10.11 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002024/0.586, allocations: 75.16 kB / 492.8 MB, free: 10.03 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000119/0.5861, allocations: 11.98 kB / 492.9 MB, free: 10.02 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.5863, allocations: 326.8 kB / 493.2 MB, free: 9.691 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009776/0.5872, allocations: 344.1 kB / 493.5 MB, free: 9.355 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009856/0.5883, allocations: 387.1 kB / 493.9 MB, free: 8.969 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009596/0.5892, allocations: 0.4997 MB / 494.4 MB, free: 8.426 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.5893, allocations: 0 / 494.4 MB, free: 8.426 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002787/0.5921, allocations: 1.117 MB / 495.5 MB, free: 7.262 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002717/0.5924, allocations: 243.9 kB / 495.7 MB, free: 6.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.5924, allocations: 0 / 495.7 MB, free: 6.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.068e-05/0.5924, allocations: 0 / 495.7 MB, free: 6.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.45e-05/0.5925, allocations: 7.938 kB / 495.7 MB, free: 6.973 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.766e-06/0.5925, allocations: 0 / 495.7 MB, free: 6.973 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005963/0.5931, allocations: 51.88 kB / 495.8 MB, free: 6.922 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002744/0.5934, allocations: 148.2 kB / 495.9 MB, free: 6.777 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.dFFREG.delay.inertialDelaySensitive[2].y,$PRE.dFFREG.delay.inertialDelaySensitive[1].y,$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,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,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 () * 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.001637/0.5951, allocations: 0.7679 MB / 496.7 MB, free: 5.957 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002408/0.5953, allocations: 91.02 kB / 496.8 MB, free: 5.867 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004897/0.5958, allocations: 151.7 kB / 496.9 MB, free: 5.711 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.5958, allocations: 0 / 496.9 MB, free: 5.711 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.5959, allocations: 4 kB / 497 MB, free: 5.707 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.002e-06/0.5959, allocations: 0 / 497 MB, free: 5.707 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004592/0.6005, allocations: 1.966 MB / 498.9 MB, free: 3.641 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.428e-06/0.6005, allocations: 7.891 kB / 498.9 MB, free: 3.633 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.201e-05/0.6006, allocations: 0 / 498.9 MB, free: 3.633 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.024e-06/0.6006, allocations: 4 kB / 498.9 MB, free: 3.629 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001326/0.6007, allocations: 35.97 kB / 499 MB, free: 3.594 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.873e-06/0.6007, allocations: 8 kB / 499 MB, free: 3.586 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.6008, allocations: 0 / 499 MB, free: 3.586 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003273/0.604, allocations: 1.385 MB / 0.4886 GB, free: 2.141 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001642/0.6057, allocations: 0.5621 MB / 0.4892 GB, free: 1.559 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003376/0.6061, allocations: 63.95 kB / 0.4892 GB, free: 1.496 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005529/0.6067, allocations: 31.92 kB / 0.4893 GB, free: 1.465 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000697/0.6074, allocations: 247.7 kB / 0.4895 GB, free: 1.223 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002831/0.6077, allocations: 159.9 kB / 0.4897 GB, free: 1.066 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002254/0.61, allocations: 0.8655 MB / 0.4905 GB, free: 212 kB / 378.7 MB Notification: Performance of sort global known variables: time 6.81e-07/0.61, allocations: 0 / 0.4905 GB, free: 212 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009053/0.6109, allocations: 124 kB / 0.4906 GB, free: 88 kB / 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,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) * 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.2703/0.8813, allocations: 2.012 MB / 0.4926 GB, free: 106.3 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003004/0.8843, allocations: 1.531 MB / 0.4941 GB, free: 105.8 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.52e-06/0.8844, allocations: 0 / 0.4941 GB, free: 105.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00182/0.8862, allocations: 1.11 MB / 0.4952 GB, free: 105.4 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001991/0.8883, allocations: 287.9 kB / 0.4954 GB, free: 105.4 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01231/0.9006, allocations: 4.977 MB / 0.5003 GB, free: 103.9 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009997/0.9017, allocations: 1.04 MB / 0.5013 GB, free: 103.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001644/0.9019, allocations: 76.02 kB / 0.5014 GB, free: 103.1 MB / 378.7 MB Notification: Performance of SimCode: time 1.853e-06/0.9019, allocations: 0.6562 kB / 0.5014 GB, free: 103.1 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.769/3.671, allocations: 9.407 MB / 0.5106 GB, free: 100.9 MB / 378.7 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