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.00215/0.002149, allocations: 179.4 kB / 8.364 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.142/2.142, 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.001111/0.001111, allocations: 93.16 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.324e-05/2.333e-05, allocations: 4 kB / 314.9 MB, free: 9.074 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3441/0.3441, allocations: 47.56 MB / 362.4 MB, free: 45.71 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1462/0.4904, allocations: 81.72 MB / 444.1 MB, free: 4.492 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002868/0.4908, allocations: 67.95 kB / 444.2 MB, free: 4.426 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1392/0.63, allocations: 31.07 MB / 475.3 MB, free: 5.477 MB / 363.1 MB Notification: Performance of FrontEnd: time 3.216e-06/0.6301, allocations: 4 kB / 475.3 MB, free: 5.473 MB / 363.1 MB Notification: Performance of Transformations before backend: time 8.956e-05/0.6302, allocations: 16 kB / 475.3 MB, free: 5.457 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.003659/0.6339, allocations: 1.309 MB / 476.6 MB, free: 4.051 MB / 363.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.53e-05/0.634, allocations: 12.03 kB / 476.6 MB, free: 4.039 MB / 363.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006003/0.6346, allocations: 126.5 kB / 476.7 MB, free: 3.914 MB / 363.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00194/0.6366, allocations: 0.5051 MB / 477.3 MB, free: 3.359 MB / 363.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001125/0.6368, allocations: 20 kB / 477.3 MB, free: 3.34 MB / 363.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002129/0.637, allocations: 20 kB / 477.3 MB, free: 3.32 MB / 363.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001663/0.6387, allocations: 454.5 kB / 477.7 MB, free: 2.879 MB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002416/0.6411, allocations: 0.591 MB / 478.3 MB, free: 2.281 MB / 363.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.963e-05/0.6412, allocations: 0 / 478.3 MB, free: 2.281 MB / 363.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001729/0.6414, allocations: 19.97 kB / 478.3 MB, free: 2.262 MB / 363.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.375e-05/0.6415, allocations: 7.938 kB / 478.4 MB, free: 2.254 MB / 363.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004608/0.6461, allocations: 1.039 MB / 479.4 MB, free: 1.172 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00227/0.6484, allocations: 0.6741 MB / 480.1 MB, free: 500 kB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002155/0.6507, allocations: 0.657 MB / 480.7 MB, free: 15.82 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.82e-05/0.6508, allocations: 4 kB / 480.7 MB, free: 15.82 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002737/0.6535, allocations: 0.75 MB / 481.5 MB, free: 15.04 MB / 379.1 MB Notification: Performance of pre-optimization done (n=36): time 8.185e-06/0.6536, allocations: 0 / 481.5 MB, free: 15.04 MB / 379.1 MB Notification: Performance of matching and sorting (n=36): time 0.004544/0.6582, allocations: 1.112 MB / 482.6 MB, free: 13.92 MB / 379.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004779/0.6587, allocations: 325 kB / 482.9 MB, free: 13.54 MB / 379.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006773/0.6655, allocations: 1.538 MB / 484.4 MB, free: 11.99 MB / 379.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004708/0.6661, allocations: 41.7 kB / 484.5 MB, free: 11.94 MB / 379.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005408/0.6667, allocations: 241 kB / 484.7 MB, free: 11.7 MB / 379.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004122/0.6671, allocations: 79.08 kB / 484.8 MB, free: 11.62 MB / 379.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001501/0.6673, allocations: 12 kB / 484.8 MB, free: 11.61 MB / 379.1 MB Notification: Performance of setup shared object (initialization): time 0.0002265/0.6675, allocations: 338.8 kB / 485.1 MB, free: 11.27 MB / 379.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001726/0.6693, allocations: 435.9 kB / 485.6 MB, free: 10.84 MB / 379.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001738/0.6711, allocations: 432 kB / 486 MB, free: 10.42 MB / 379.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00121/0.6723, allocations: 305.6 kB / 486.3 MB, free: 10.12 MB / 379.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.516e-06/0.6724, allocations: 0 / 486.3 MB, free: 10.12 MB / 379.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.004578/0.677, allocations: 0.9939 MB / 487.3 MB, free: 9.125 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004893/0.6775, allocations: 281.5 kB / 487.6 MB, free: 8.801 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.568e-05/0.6776, allocations: 0 / 487.6 MB, free: 8.801 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.536e-05/0.6776, allocations: 7.938 kB / 487.6 MB, free: 8.793 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001078/0.6778, allocations: 11.98 kB / 487.6 MB, free: 8.781 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.448e-05/0.6778, allocations: 0 / 487.6 MB, free: 8.781 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001159/0.679, allocations: 43.98 kB / 487.6 MB, free: 8.738 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003536/0.6794, allocations: 155.9 kB / 487.8 MB, free: 8.586 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: 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.0006833/0.6801, allocations: 462.4 kB / 488.2 MB, free: 8.078 MB / 379.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002961/0.683, allocations: 1.167 MB / 489.4 MB, free: 6.902 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003226/0.6834, allocations: 130.5 kB / 489.5 MB, free: 6.773 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008252/0.6843, allocations: 252 kB / 489.8 MB, free: 6.523 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.478e-06/0.6843, allocations: 4 kB / 489.8 MB, free: 6.52 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/0.6843, allocations: 3.938 kB / 489.8 MB, free: 6.516 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.6843, allocations: 0 / 489.8 MB, free: 6.516 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005023/0.6894, allocations: 2.005 MB / 491.8 MB, free: 4.461 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.484e-06/0.6894, allocations: 4 kB / 491.8 MB, free: 4.457 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.514e-05/0.6895, allocations: 0 / 491.8 MB, free: 4.457 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.035e-06/0.6895, allocations: 0 / 491.8 MB, free: 4.457 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000146/0.6896, allocations: 39.97 kB / 491.8 MB, free: 4.418 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.011e-06/0.6897, allocations: 7.984 kB / 491.8 MB, free: 4.41 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.672e-06/0.6897, allocations: 3.984 kB / 491.8 MB, free: 4.406 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003085/0.6928, allocations: 1.265 MB / 493.1 MB, free: 3.121 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002116/0.6949, allocations: 0.6785 MB / 493.8 MB, free: 2.422 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003483/0.6953, allocations: 67.95 kB / 493.8 MB, free: 2.355 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006536/0.696, allocations: 43.86 kB / 493.9 MB, free: 2.312 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001028/0.6971, allocations: 359.6 kB / 494.2 MB, free: 1.961 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003226/0.6974, allocations: 159.9 kB / 494.4 MB, free: 1.805 MB / 379.1 MB Notification: Performance of sorting global known variables: time 0.003332/0.7008, allocations: 1.259 MB / 495.6 MB, free: 0.543 MB / 379.1 MB Notification: Performance of sort global known variables: time 9.72e-07/0.7008, allocations: 0 / 495.6 MB, free: 0.543 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.001044/0.7019, allocations: 147.9 kB / 495.8 MB, free: 408 kB / 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: 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.003648/0.7055, allocations: 1.908 MB / 497.7 MB, free: 14.46 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.00335/0.7089, allocations: 1.87 MB / 499.6 MB, free: 12.49 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/0.709, allocations: 3.938 kB / 499.6 MB, free: 12.49 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002214/0.7112, allocations: 1.37 MB / 0.4892 GB, free: 11.02 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002151/0.7134, allocations: 292.6 kB / 0.4895 GB, free: 10.74 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007898/0.7214, allocations: 2.775 MB / 0.4922 GB, free: 7.902 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001704/0.7232, allocations: 1.213 MB / 0.4934 GB, free: 6.664 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003059/0.7235, allocations: 151.4 kB / 0.4935 GB, free: 6.516 MB / 395.1 MB Notification: Performance of SimCode: time 1.212e-06/0.7235, allocations: 4 kB / 0.4935 GB, free: 6.512 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.299/4.022, allocations: 14.91 MB / 0.5081 GB, free: 117.2 MB / 395.1 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