Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH.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.DFFREGSRH,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DFFREGSRH",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGSRH,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DFFREGSRH",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.002249/0.002248, allocations: 182.4 kB / 13.66 MB, free: 1.664 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.144/2.144, allocations: 205.2 MB / 219.4 MB, free: 14.22 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.001119/0.001118, allocations: 90 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.499e-05/3.517e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1086, allocations: 47.57 MB / 369.2 MB, free: 2.113 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4133/0.522, allocations: 82.37 MB / 451.5 MB, free: 10.81 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002831/0.5224, allocations: 68.59 kB / 451.6 MB, free: 10.77 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1098/0.6322, allocations: 31.27 MB / 482.9 MB, free: 13.48 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.345e-06/0.6323, allocations: 0 / 482.9 MB, free: 13.48 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.468e-05/0.6323, allocations: 20 kB / 482.9 MB, free: 13.46 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.002342/0.6347, allocations: 1.299 MB / 484.2 MB, free: 12.07 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.519e-05/0.6348, allocations: 8.031 kB / 484.2 MB, free: 12.06 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002568/0.635, allocations: 66.53 kB / 484.3 MB, free: 11.98 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003059/0.6354, allocations: 126.5 kB / 484.4 MB, free: 11.86 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001298/0.6367, allocations: 0.509 MB / 484.9 MB, free: 11.3 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.254e-05/0.6368, allocations: 24 kB / 484.9 MB, free: 11.28 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001376/0.6369, allocations: 31.98 kB / 485 MB, free: 11.25 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001591/0.6385, allocations: 0.6182 MB / 485.6 MB, free: 10.62 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.445e-05/0.6386, allocations: 0 / 485.6 MB, free: 10.62 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001086/0.6387, allocations: 23.98 kB / 485.6 MB, free: 10.6 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.699e-06/0.6388, allocations: 4 kB / 485.6 MB, free: 10.59 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001145/0.6399, allocations: 457.1 kB / 486 MB, free: 10.15 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00287/0.6428, allocations: 1.095 MB / 487.1 MB, free: 8.996 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001556/0.6444, allocations: 0.6936 MB / 487.8 MB, free: 8.293 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001431/0.6459, allocations: 0.6763 MB / 488.5 MB, free: 7.613 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.16e-05/0.646, allocations: 0 / 488.5 MB, free: 7.613 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001759/0.6477, allocations: 0.7649 MB / 489.3 MB, free: 6.812 MB / 362.7 MB Notification: Performance of pre-optimization done (n=36): time 4.679e-06/0.6478, allocations: 0 / 489.3 MB, free: 6.812 MB / 362.7 MB Notification: Performance of matching and sorting (n=36): time 0.003363/0.6512, allocations: 1.407 MB / 490.7 MB, free: 5.348 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002963/0.6515, allocations: 332.9 kB / 491 MB, free: 4.961 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004217/0.6558, allocations: 1.602 MB / 492.6 MB, free: 3.344 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002627/0.6561, allocations: 45.69 kB / 492.7 MB, free: 3.293 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003193/0.6564, allocations: 245 kB / 492.9 MB, free: 3.051 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000215/0.6566, allocations: 87.14 kB / 493 MB, free: 2.965 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.2e-05/0.6567, allocations: 15.98 kB / 493 MB, free: 2.949 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.6569, allocations: 322.8 kB / 493.3 MB, free: 2.625 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0011/0.658, allocations: 452 kB / 493.8 MB, free: 2.18 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00108/0.6591, allocations: 448.2 kB / 494.2 MB, free: 1.742 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001047/0.6602, allocations: 0.5918 MB / 494.8 MB, free: 1.102 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.119e-06/0.6602, allocations: 0 / 494.8 MB, free: 1.102 MB / 362.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002973/0.6632, allocations: 1.304 MB / 496.1 MB, free: 15.74 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000324/0.6636, allocations: 293.5 kB / 496.4 MB, free: 15.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.6636, allocations: 4 kB / 496.4 MB, free: 15.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.409e-05/0.6637, allocations: 0 / 496.4 MB, free: 15.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.432e-05/0.6637, allocations: 7.938 kB / 496.4 MB, free: 15.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.686e-06/0.6637, allocations: 0 / 496.4 MB, free: 15.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007059/0.6644, allocations: 47.86 kB / 496.4 MB, free: 15.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002819/0.6647, allocations: 155.9 kB / 496.6 MB, free: 15.2 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: 43 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].x,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].x,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.set,$PRE.dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.reset,$PRE.dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 8 * 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.0006707/0.6654, allocations: 458.5 kB / 497 MB, free: 14.69 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003114/0.6658, allocations: 134.4 kB / 497.2 MB, free: 14.56 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008426/0.6666, allocations: 255.7 kB / 497.4 MB, free: 14.31 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.059e-05/0.6666, allocations: 7.984 kB / 497.4 MB, free: 14.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.6667, allocations: 0 / 497.4 MB, free: 14.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.6667, allocations: 0 / 497.4 MB, free: 14.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005499/0.6722, allocations: 2.395 MB / 499.8 MB, free: 11.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.766e-06/0.6723, allocations: 0 / 499.8 MB, free: 11.79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.194e-05/0.6723, allocations: 7.938 kB / 499.8 MB, free: 11.79 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.586e-06/0.6723, allocations: 0 / 499.8 MB, free: 11.79 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001492/0.6725, allocations: 43.97 kB / 499.9 MB, free: 11.74 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.6725, allocations: 0 / 499.9 MB, free: 11.74 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.6725, allocations: 0 / 499.9 MB, free: 11.74 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003561/0.6761, allocations: 1.614 MB / 0.4897 GB, free: 10.06 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002047/0.6782, allocations: 0.6864 MB / 0.4904 GB, free: 9.352 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003348/0.6786, allocations: 63.95 kB / 0.4905 GB, free: 9.289 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000666/0.6793, allocations: 43.91 kB / 0.4905 GB, free: 9.246 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009812/0.6803, allocations: 363.5 kB / 0.4908 GB, free: 8.891 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003074/0.6806, allocations: 159.9 kB / 0.491 GB, free: 8.734 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003667/0.6843, allocations: 1.319 MB / 0.4923 GB, free: 7.41 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.002e-06/0.6843, allocations: 0 / 0.4923 GB, free: 7.41 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009767/0.6853, allocations: 156 kB / 0.4924 GB, free: 7.258 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: 36 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.next_assign_val[2]) * Number of discrete states: 34 (set.y,data_1.y,reset.y,data_0.y,clock.y,dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.next_assign_val[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.set,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGSRH.delay.inertialDelaySensitive[1].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 8 * 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.004199/0.6895, allocations: 2.261 MB / 0.4946 GB, free: 4.914 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003621/0.6932, allocations: 1.914 MB / 0.4965 GB, free: 2.902 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.6933, allocations: 0 / 0.4965 GB, free: 2.902 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002275/0.6956, allocations: 1.393 MB / 0.4979 GB, free: 1.41 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002134/0.6978, allocations: 293.4 kB / 0.4982 GB, free: 1.121 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007934/0.7057, allocations: 2.819 MB / 0.5009 GB, free: 14.24 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001637/0.7074, allocations: 1.221 MB / 0.5021 GB, free: 12.99 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000287/0.7078, allocations: 151.4 kB / 0.5022 GB, free: 12.84 MB / 394.7 MB Notification: Performance of SimCode: time 1.463e-06/0.7078, allocations: 0 / 0.5022 GB, free: 12.84 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.979/3.687, allocations: 14.97 MB / 0.5169 GB, free: 13.64 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DFFREGSRH_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DFFREGSRH.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH_res.mat does not exist to compare? outputFormat=mat