Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.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.DFFREGSRL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DFFREGSRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGSRL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DFFREGSRL",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.001627/0.001627, allocations: 186.2 kB / 16.4 MB, free: 5.746 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.992/1.992, 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.001139/0.001139, allocations: 100 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003973/0.0003973, allocations: 8 kB / 327.1 MB, free: 112 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3412/0.3417, allocations: 47.57 MB / 374.6 MB, free: 45.33 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1359/0.4776, allocations: 82.51 MB / 457.1 MB, free: 14.13 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002808/0.4779, allocations: 71.95 kB / 457.2 MB, free: 14.06 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.129/0.607, allocations: 32.66 MB / 489.9 MB, free: 13.41 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.6071, allocations: 0 / 489.9 MB, free: 13.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.746e-05/0.6071, allocations: 16 kB / 489.9 MB, free: 13.39 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.003049/0.6102, allocations: 1.5 MB / 491.4 MB, free: 11.79 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.92e-05/0.6103, allocations: 12.03 kB / 491.4 MB, free: 11.77 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002679/0.6106, allocations: 58.55 kB / 491.5 MB, free: 11.71 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003009/0.6109, allocations: 138.4 kB / 491.6 MB, free: 11.57 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001322/0.6122, allocations: 0.5051 MB / 492.1 MB, free: 11.02 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.154e-05/0.6123, allocations: 20 kB / 492.1 MB, free: 11 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001393/0.6125, allocations: 31.94 kB / 492.1 MB, free: 10.96 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001785/0.6143, allocations: 0.6347 MB / 492.8 MB, free: 10.32 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.441e-05/0.6143, allocations: 0 / 492.8 MB, free: 10.32 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000102/0.6144, allocations: 16 kB / 492.8 MB, free: 10.31 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.6145, allocations: 4 kB / 492.8 MB, free: 10.3 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001337/0.6158, allocations: 467.7 kB / 493.3 MB, free: 9.848 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002721/0.6185, allocations: 1.103 MB / 494.4 MB, free: 8.688 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001667/0.6202, allocations: 0.6975 MB / 495.1 MB, free: 7.98 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.84e-05/0.6203, allocations: 0 / 495.1 MB, free: 7.98 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001724/0.622, allocations: 0.7692 MB / 495.8 MB, free: 7.176 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 2.765e-06/0.6221, allocations: 0 / 495.8 MB, free: 7.176 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.005207/0.6273, allocations: 2.129 MB / 498 MB, free: 4.934 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002996/0.6276, allocations: 329 kB / 498.3 MB, free: 4.551 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004237/0.6319, allocations: 1.612 MB / 499.9 MB, free: 2.926 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002601/0.6322, allocations: 41.7 kB / 499.9 MB, free: 2.879 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003319/0.6325, allocations: 249 kB / 0.4884 GB, free: 2.633 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002246/0.6328, allocations: 83.06 kB / 0.4885 GB, free: 2.551 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001177/0.6329, allocations: 12 kB / 0.4885 GB, free: 2.539 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.6331, allocations: 322.8 kB / 0.4888 GB, free: 2.215 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001229/0.6343, allocations: 451.9 kB / 0.4893 GB, free: 1.77 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001231/0.6356, allocations: 486.7 kB / 0.4897 GB, free: 1.285 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001224/0.6368, allocations: 0.5908 MB / 0.4903 GB, free: 0.6445 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.533e-06/0.6368, allocations: 15.77 kB / 0.4903 GB, free: 0.6289 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.2851/0.922, allocations: 1.313 MB / 0.4916 GB, free: 105.1 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002789/0.9223, allocations: 290.5 kB / 0.4919 GB, free: 104.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.9223, allocations: 1.188 kB / 0.4919 GB, free: 104.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.558e-05/0.9223, allocations: 4.781 kB / 0.4919 GB, free: 104.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.688e-05/0.9224, allocations: 9.828 kB / 0.4919 GB, free: 104.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.084e-05/0.9224, allocations: 1.844 kB / 0.4919 GB, free: 104.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006533/0.9231, allocations: 45.56 kB / 0.492 GB, free: 104.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000342/0.9234, allocations: 148.3 kB / 0.4921 GB, free: 104.9 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: 43 ($PRE.dFFREGSRL.delay.inertialDelaySensitive[2].y,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGSRL.dFFSR.set,dFFREGSRL.dFFSR.set,$PRE.dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.reset,$PRE.dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.dataIn[1],dFFREGSRL.dFFSR.dataIn[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.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.001958/0.9254, allocations: 0.9953 MB / 0.4931 GB, free: 104.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002742/0.9257, allocations: 130.6 kB / 0.4932 GB, free: 104.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007102/0.9264, allocations: 249.4 kB / 0.4934 GB, free: 104.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.713e-06/0.9265, allocations: 2.5 kB / 0.4934 GB, free: 104.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.533e-06/0.9265, allocations: 0 / 0.4934 GB, free: 104.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.9265, allocations: 3.781 kB / 0.4934 GB, free: 104.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00492/0.9314, allocations: 2.421 MB / 0.4958 GB, free: 103.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/0.9315, allocations: 1.125 kB / 0.4958 GB, free: 103.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.331e-05/0.9315, allocations: 1.156 kB / 0.4958 GB, free: 103.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.714e-06/0.9315, allocations: 1.125 kB / 0.4958 GB, free: 103.6 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001228/0.9316, allocations: 38.44 kB / 0.4958 GB, free: 103.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.232e-06/0.9317, allocations: 8.266 kB / 0.4958 GB, free: 103.6 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.9317, allocations: 0 / 0.4958 GB, free: 103.6 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003436/0.9351, allocations: 1.63 MB / 0.4974 GB, free: 103.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001794/0.937, allocations: 0.6841 MB / 0.4981 GB, free: 102.9 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003145/0.9373, allocations: 66.97 kB / 0.4982 GB, free: 102.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006033/0.9379, allocations: 36.19 kB / 0.4982 GB, free: 102.9 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008874/0.9388, allocations: 354.3 kB / 0.4985 GB, free: 102.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002865/0.9391, allocations: 163.2 kB / 0.4987 GB, free: 102.9 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003261/0.9424, allocations: 1.328 MB / 0.5 GB, free: 102.6 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.164e-06/0.9425, allocations: 0 / 0.5 GB, free: 102.6 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001005/0.9435, allocations: 156.7 kB / 0.5001 GB, free: 102.6 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,dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,dFFREGSRL.dFFSR.set,dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.dataIn[1],dFFREGSRL.dFFSR.dataIn[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.next_assign_val[2]) * Number of discrete states: 34 (set.y,data_1.y,reset.y,data_0.y,clock.y,dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.next_assign_val[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.set,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGSRL.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.003618/0.9471, allocations: 2.276 MB / 0.5024 GB, free: 101.6 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003039/0.9502, allocations: 1.925 MB / 0.5042 GB, free: 100.6 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.93e-06/0.9503, allocations: 2.078 kB / 0.5043 GB, free: 100.6 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001856/0.9521, allocations: 1.412 MB / 0.5056 GB, free: 99.57 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001964/0.9541, allocations: 308.4 kB / 0.5059 GB, free: 99.51 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01746/0.9716, allocations: 7.367 MB / 0.5131 GB, free: 95.96 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001326/0.973, allocations: 1.23 MB / 0.5143 GB, free: 95.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002497/0.9733, allocations: 151.2 kB / 0.5145 GB, free: 94.99 MB / 378.7 MB Notification: Performance of SimCode: time 1.283e-06/0.9733, allocations: 0 / 0.5145 GB, free: 94.99 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.786/3.759, allocations: 15.01 MB / 0.5291 GB, free: 82.82 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DFFREGSRL_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DFFREGSRL.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL_res.mat does not exist to compare? outputFormat=mat