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.001486/0.001486, allocations: 186.2 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.948/1.948, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.001146/0.001145, allocations: 96.41 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004058/0.0004058, allocations: 12 kB / 327.1 MB, free: 128 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3365/0.3369, allocations: 47.57 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.136/0.473, allocations: 82.47 MB / 457.1 MB, free: 14.18 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002799/0.4733, allocations: 71.97 kB / 457.2 MB, free: 14.11 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1074/0.5808, allocations: 31.1 MB / 488.3 MB, free: 15.03 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.5808, allocations: 0 / 488.3 MB, free: 15.03 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.432e-05/0.5809, allocations: 20 kB / 488.3 MB, free: 15.01 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.00266/0.5836, allocations: 1.508 MB / 489.8 MB, free: 13.39 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.386e-05/0.5836, allocations: 8.031 kB / 489.8 MB, free: 13.39 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002086/0.5838, allocations: 58.55 kB / 489.9 MB, free: 13.32 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002899/0.5841, allocations: 130.5 kB / 490 MB, free: 13.19 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001151/0.5853, allocations: 0.5128 MB / 490.5 MB, free: 12.63 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.908e-05/0.5854, allocations: 27.98 kB / 490.5 MB, free: 12.6 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001371/0.5855, allocations: 28 kB / 490.6 MB, free: 12.57 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001721/0.5873, allocations: 0.6266 MB / 491.2 MB, free: 11.94 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.47e-05/0.5873, allocations: 3.938 kB / 491.2 MB, free: 11.94 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001016/0.5874, allocations: 19.98 kB / 491.2 MB, free: 11.92 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.313e-05/0.5874, allocations: 8 kB / 491.2 MB, free: 11.91 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00125/0.5887, allocations: 463.7 kB / 491.7 MB, free: 11.46 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002702/0.5914, allocations: 1.088 MB / 492.7 MB, free: 10.31 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001732/0.5932, allocations: 0.7014 MB / 493.5 MB, free: 9.602 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.676e-05/0.5933, allocations: 4.141 kB / 493.5 MB, free: 9.598 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001925/0.5952, allocations: 0.7654 MB / 494.2 MB, free: 8.797 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 4.228e-06/0.5952, allocations: 0 / 494.2 MB, free: 8.797 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.005239/0.6005, allocations: 2.133 MB / 496.4 MB, free: 6.551 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003193/0.6009, allocations: 329 kB / 496.7 MB, free: 6.168 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004442/0.6053, allocations: 1.619 MB / 498.3 MB, free: 4.535 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002706/0.6056, allocations: 49.69 kB / 498.3 MB, free: 4.48 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003565/0.606, allocations: 241 kB / 498.6 MB, free: 4.242 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002698/0.6063, allocations: 86.98 kB / 498.7 MB, free: 4.156 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001192/0.6064, allocations: 16 kB / 498.7 MB, free: 4.141 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001899/0.6066, allocations: 330.8 kB / 499 MB, free: 3.809 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001294/0.6079, allocations: 443.9 kB / 499.4 MB, free: 3.371 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001271/0.6092, allocations: 482.7 kB / 499.9 MB, free: 2.891 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001199/0.6105, allocations: 0.5984 MB / 0.4888 GB, free: 2.242 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.165e-06/0.6105, allocations: 4 kB / 0.4888 GB, free: 2.238 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.003385/0.6139, allocations: 1.307 MB / 0.4901 GB, free: 0.875 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003679/0.6143, allocations: 289.5 kB / 0.4903 GB, free: 0.543 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/0.6143, allocations: 4 kB / 0.4903 GB, free: 0.5391 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.608e-05/0.6144, allocations: 3.953 kB / 0.4903 GB, free: 0.5352 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.983e-05/0.6144, allocations: 12 kB / 0.4903 GB, free: 0.5234 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/0.6145, allocations: 0 / 0.4903 GB, free: 0.5234 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007395/0.6152, allocations: 43.88 kB / 0.4904 GB, free: 492 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003094/0.6155, allocations: 159.9 kB / 0.4905 GB, free: 332 kB / 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: 43 ($PRE.dFFREGSRH.delay.inertialDelaySensitive[2].y,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].y,$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,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,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 () * Number of clocked 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.2759/0.8914, allocations: 0.9854 MB / 0.4915 GB, free: 104.8 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003406/0.8918, allocations: 135.3 kB / 0.4916 GB, free: 104.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008388/0.8926, allocations: 247.9 kB / 0.4919 GB, free: 104.7 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.805e-06/0.8926, allocations: 4.828 kB / 0.4919 GB, free: 104.7 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-06/0.8927, allocations: 0.5938 kB / 0.4919 GB, free: 104.7 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.802e-06/0.8927, allocations: 5.828 kB / 0.4919 GB, free: 104.7 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005647/0.8983, allocations: 2.418 MB / 0.4942 GB, free: 104 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.8984, allocations: 3.75 kB / 0.4942 GB, free: 104 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.586e-05/0.8984, allocations: 1.031 kB / 0.4942 GB, free: 104 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.723e-06/0.8984, allocations: 0.9688 kB / 0.4942 GB, free: 104 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002199/0.8987, allocations: 42.62 kB / 0.4943 GB, free: 104 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.508e-06/0.8987, allocations: 1.031 kB / 0.4943 GB, free: 104 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.8987, allocations: 1.031 kB / 0.4943 GB, free: 104 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003602/0.9023, allocations: 1.63 MB / 0.4959 GB, free: 103.6 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001844/0.9042, allocations: 0.6861 MB / 0.4966 GB, free: 103.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003121/0.9045, allocations: 61.47 kB / 0.4966 GB, free: 103.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006001/0.9051, allocations: 42.14 kB / 0.4967 GB, free: 103.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008763/0.906, allocations: 352.2 kB / 0.497 GB, free: 103.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002959/0.9063, allocations: 157.9 kB / 0.4971 GB, free: 103.3 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003277/0.9096, allocations: 1.334 MB / 0.4984 GB, free: 103 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.92e-07/0.9097, allocations: 3.594 kB / 0.4984 GB, free: 103 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00104/0.9107, allocations: 152.2 kB / 0.4986 GB, free: 103 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) * Number of clocked states: 0 () * 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.00398/0.9147, allocations: 2.282 MB / 0.5008 GB, free: 102 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003054/0.9178, allocations: 1.929 MB / 0.5027 GB, free: 101.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.9178, allocations: 0 / 0.5027 GB, free: 101.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001881/0.9197, allocations: 1.412 MB / 0.5041 GB, free: 100.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001999/0.9218, allocations: 299.9 kB / 0.5044 GB, free: 100.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01829/0.9401, allocations: 7.368 MB / 0.5116 GB, free: 96.64 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001258/0.9414, allocations: 1.22 MB / 0.5128 GB, free: 95.78 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002362/0.9417, allocations: 153.3 kB / 0.5129 GB, free: 95.67 MB / 378.7 MB Notification: Performance of SimCode: time 1.193e-06/0.9417, allocations: 0 / 0.5129 GB, free: 95.67 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.781/3.723, allocations: 15.01 MB / 0.5276 GB, free: 84.59 MB / 378.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