Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGL.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.DFFREGL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DFFREGL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DFFREGL",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.001525/0.001524, 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.969/1.969, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001157/0.001157, allocations: 92.36 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004136/0.0004135, allocations: 12 kB / 327.1 MB, free: 120 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3744/0.3748, allocations: 47.57 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1344/0.5093, allocations: 82.25 MB / 456.9 MB, free: 14.39 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002844/0.5096, allocations: 75.95 kB / 457 MB, free: 14.32 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1292/0.6388, allocations: 37.5 MB / 494.5 MB, free: 8.824 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.575e-06/0.6389, allocations: 0 / 494.5 MB, free: 8.824 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.439e-05/0.6389, allocations: 12 kB / 494.5 MB, free: 8.812 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001998/0.6409, allocations: 1.139 MB / 495.6 MB, free: 7.578 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.588e-05/0.641, allocations: 8.031 kB / 495.6 MB, free: 7.57 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002117/0.6412, allocations: 66.47 kB / 495.7 MB, free: 7.496 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002117/0.6415, allocations: 90.97 kB / 495.8 MB, free: 7.406 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000945/0.6424, allocations: 427.5 kB / 496.2 MB, free: 6.949 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.264e-05/0.6425, allocations: 20 kB / 496.2 MB, free: 6.93 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001255/0.6426, allocations: 24 kB / 496.2 MB, free: 6.906 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001512/0.6442, allocations: 0.5123 MB / 496.7 MB, free: 6.387 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.6442, allocations: 4 kB / 496.7 MB, free: 6.383 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.893e-05/0.6443, allocations: 19.97 kB / 496.8 MB, free: 6.363 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/0.6444, allocations: 4 kB / 496.8 MB, free: 6.359 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001046/0.6454, allocations: 368.1 kB / 497.1 MB, free: 6 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00217/0.6476, allocations: 0.8521 MB / 498 MB, free: 5.098 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001278/0.6489, allocations: 0.514 MB / 498.5 MB, free: 4.574 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.616e-05/0.649, allocations: 0 / 498.5 MB, free: 4.574 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001463/0.6504, allocations: 0.6663 MB / 499.2 MB, free: 3.867 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 3.567e-06/0.6505, allocations: 0 / 499.2 MB, free: 3.867 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.004326/0.6548, allocations: 1.791 MB / 0.4892 GB, free: 1.973 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002589/0.6551, allocations: 279.3 kB / 0.4895 GB, free: 1.645 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002543/0.6577, allocations: 1.031 MB / 0.4905 GB, free: 0.6016 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002177/0.658, allocations: 41.7 kB / 0.4905 GB, free: 0.5547 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001858/0.6581, allocations: 208.3 kB / 0.4907 GB, free: 360 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001981/0.6584, allocations: 79.09 kB / 0.4908 GB, free: 280 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.728e-05/0.6585, allocations: 12 kB / 0.4908 GB, free: 268 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.269/0.9275, allocations: 319.7 kB / 0.4911 GB, free: 107.4 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001293/0.9289, allocations: 352.9 kB / 0.4914 GB, free: 107.4 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00108/0.93, allocations: 380.6 kB / 0.4918 GB, free: 107.3 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009255/0.9309, allocations: 0.4946 MB / 0.4923 GB, free: 107.1 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/0.9309, allocations: 0.7812 kB / 0.4923 GB, free: 107.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002594/0.9335, allocations: 1.109 MB / 0.4934 GB, free: 106.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001964/0.9338, allocations: 240.6 kB / 0.4936 GB, free: 106.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.9338, allocations: 3.828 kB / 0.4936 GB, free: 106.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.542e-05/0.9338, allocations: 1.188 kB / 0.4936 GB, free: 106.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.415e-05/0.9339, allocations: 13.78 kB / 0.4936 GB, free: 106.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.118e-06/0.9339, allocations: 1.188 kB / 0.4936 GB, free: 106.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005447/0.9345, allocations: 35.42 kB / 0.4937 GB, free: 106.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002754/0.9348, allocations: 148.9 kB / 0.4938 GB, free: 106.6 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.dFFREGL.delay.inertialDelaySensitive[2].y,$PRE.dFFREGL.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,$PRE.dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].y_old,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGL.delay.inertialDelaySensitive[2].x,dFFREGL.delay.inertialDelaySensitive[2].x,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].y_old,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGL.dFFR.reset,dFFREGL.dFFR.reset,$PRE.dFFREGL.dFFR.clock,dFFREGL.dFFR.clock,dFFREGL.dFFR.dataIn[1],dFFREGL.dFFR.dataIn[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.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.001415/0.9362, allocations: 0.7712 MB / 0.4946 GB, free: 106.3 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002186/0.9364, allocations: 89 kB / 0.4946 GB, free: 106.3 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003965/0.9368, allocations: 148 kB / 0.4948 GB, free: 106.2 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.9368, allocations: 4.172 kB / 0.4948 GB, free: 106.2 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.423e-06/0.9369, allocations: 0 / 0.4948 GB, free: 106.2 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.9369, allocations: 1.438 kB / 0.4948 GB, free: 106.2 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003947/0.9408, allocations: 1.978 MB / 0.4967 GB, free: 105.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.092e-06/0.9409, allocations: 0 / 0.4967 GB, free: 105.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.239e-05/0.9409, allocations: 4.844 kB / 0.4967 GB, free: 105.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.823e-06/0.9409, allocations: 1.312 kB / 0.4967 GB, free: 105.6 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001091/0.9411, allocations: 33.19 kB / 0.4968 GB, free: 105.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.949e-06/0.9411, allocations: 1.344 kB / 0.4968 GB, free: 105.6 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.9411, allocations: 5.422 kB / 0.4968 GB, free: 105.6 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002965/0.9441, allocations: 1.385 MB / 0.4981 GB, free: 105.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001357/0.9455, allocations: 0.5665 MB / 0.4987 GB, free: 105 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002627/0.9457, allocations: 61.91 kB / 0.4987 GB, free: 105 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005156/0.9463, allocations: 40.8 kB / 0.4988 GB, free: 105 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006311/0.9469, allocations: 237.6 kB / 0.499 GB, free: 105 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002659/0.9472, allocations: 163.5 kB / 0.4991 GB, free: 105 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001894/0.9491, allocations: 0.8626 MB / 0.5 GB, free: 104.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.92e-07/0.9491, allocations: 0 / 0.5 GB, free: 104.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008067/0.95, allocations: 124.2 kB / 0.5001 GB, free: 104.8 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: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].y_old,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].t_next,dFFREGL.delay.inertialDelaySensitive[2].x,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].y_old,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].t_next,dFFREGL.dFFR.reset,dFFREGL.dFFR.clock,dFFREGL.dFFR.dataIn[1],dFFREGL.dFFR.dataIn[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.next_assign_val[2]) * Number of discrete states: 32 (data_1.y,reset.y,data_0.y,clock.y,dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.next_assign_val[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.clock,dFFREGL.dFFR.reset,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].t_next,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].t_next,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGL.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.003243/0.9532, allocations: 2.017 MB / 0.5021 GB, free: 103.8 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002373/0.9556, allocations: 1.533 MB / 0.5036 GB, free: 102.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.9557, allocations: 0 / 0.5036 GB, free: 102.9 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001421/0.9571, allocations: 1.126 MB / 0.5047 GB, free: 102.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001769/0.9589, allocations: 276.4 kB / 0.5049 GB, free: 102 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009616/0.9685, allocations: 4.975 MB / 0.5098 GB, free: 99.57 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008558/0.9694, allocations: 1.041 MB / 0.5108 GB, free: 98.78 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001368/0.9696, allocations: 76.14 kB / 0.5109 GB, free: 98.72 MB / 378.7 MB Notification: Performance of SimCode: time 2.454e-06/0.9696, allocations: 4 kB / 0.5109 GB, free: 98.71 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.765/3.734, allocations: 9.407 MB / 0.5201 GB, free: 93.03 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGL.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGL.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGL.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGL_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DFFREGL_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DFFREGL.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGL_res.mat does not exist to compare? outputFormat=mat