Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DFFREGL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DFFREGL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001258/0.001258, allocations: 180.3 kB / 16.38 MB, free: 5.742 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.398/1.398, allocations: 223.2 MB / 240.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009823/0.0009823, allocations: 95.92 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004224/0.0004219, allocations: 4 kB / 351.2 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3073/0.3077, allocations: 50.4 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1046/0.4124, allocations: 83.15 MB / 484.7 MB, free: 13.29 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002175/0.4127, allocations: 75.91 kB / 484.8 MB, free: 13.21 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2877/0.7004, allocations: 37.89 MB / 0.5104 GB, free: 95.85 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.7005, allocations: 0 / 0.5104 GB, free: 95.85 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.971e-05/0.7005, allocations: 10.31 kB / 0.5104 GB, free: 95.85 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.0009877/0.7015, allocations: 1.141 MB / 0.5116 GB, free: 95.09 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.7016, allocations: 7.875 kB / 0.5116 GB, free: 95.09 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.763e-05/0.7016, allocations: 59.92 kB / 0.5116 GB, free: 95.05 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001192/0.7018, allocations: 90.16 kB / 0.5117 GB, free: 95 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005774/0.7024, allocations: 425.9 kB / 0.5121 GB, free: 94.73 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.379e-05/0.7024, allocations: 18.12 kB / 0.5121 GB, free: 94.73 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.796e-05/0.7025, allocations: 21.56 kB / 0.5122 GB, free: 94.73 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007408/0.7032, allocations: 0.5206 MB / 0.5127 GB, free: 94.69 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.7032, allocations: 0 / 0.5127 GB, free: 94.69 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.285e-05/0.7033, allocations: 9.906 kB / 0.5127 GB, free: 94.69 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.7033, allocations: 3.969 kB / 0.5127 GB, free: 94.69 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004647/0.7038, allocations: 377.8 kB / 0.513 GB, free: 94.69 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001219/0.705, allocations: 0.8494 MB / 0.5139 GB, free: 94.36 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005611/0.7056, allocations: 0.5105 MB / 0.5144 GB, free: 94.23 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.948e-06/0.7056, allocations: 7.969 kB / 0.5144 GB, free: 94.23 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00072/0.7063, allocations: 0.6651 MB / 0.515 GB, free: 93.92 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 1.843e-06/0.7063, allocations: 0 / 0.515 GB, free: 93.92 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.002069/0.7084, allocations: 1.79 MB / 0.5168 GB, free: 92.99 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001074/0.7085, allocations: 276.6 kB / 0.517 GB, free: 92.7 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001145/0.7097, allocations: 1.042 MB / 0.518 GB, free: 92.22 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.308e-05/0.7098, allocations: 43.3 kB / 0.5181 GB, free: 92.18 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.65e-05/0.7098, allocations: 148 kB / 0.5182 GB, free: 92.05 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.079e-05/0.7099, allocations: 75.28 kB / 0.5183 GB, free: 92.01 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.167e-05/0.71, allocations: 11.3 kB / 0.5183 GB, free: 92.01 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.031e-05/0.7101, allocations: 351.8 kB / 0.5186 GB, free: 91.68 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004144/0.7105, allocations: 346.4 kB / 0.519 GB, free: 91.57 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004471/0.7109, allocations: 380 kB / 0.5193 GB, free: 91.44 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004191/0.7114, allocations: 0.4942 MB / 0.5198 GB, free: 91.11 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.7114, allocations: 0 / 0.5198 GB, free: 91.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001217/0.7126, allocations: 1.123 MB / 0.5209 GB, free: 90.57 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001183/0.7127, allocations: 240 kB / 0.5211 GB, free: 90.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.7127, allocations: 3.031 kB / 0.5212 GB, free: 90.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.7128, allocations: 3.984 kB / 0.5212 GB, free: 90.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.638e-05/0.7128, allocations: 7.281 kB / 0.5212 GB, free: 90.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.7128, allocations: 0 / 0.5212 GB, free: 90.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002806/0.7131, allocations: 50.89 kB / 0.5212 GB, free: 90.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001458/0.7133, allocations: 152.2 kB / 0.5214 GB, free: 90.28 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.0006519/0.7139, allocations: 0.7655 MB / 0.5221 GB, free: 89.7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.523e-05/0.714, allocations: 92.78 kB / 0.5222 GB, free: 89.66 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001818/0.7142, allocations: 141.2 kB / 0.5223 GB, free: 89.57 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.7142, allocations: 7.578 kB / 0.5223 GB, free: 89.56 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.7142, allocations: 4 kB / 0.5223 GB, free: 89.56 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.7142, allocations: 0 / 0.5223 GB, free: 89.56 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001951/0.7162, allocations: 1.971 MB / 0.5243 GB, free: 87.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.7162, allocations: 0 / 0.5243 GB, free: 87.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.205e-05/0.7162, allocations: 1.875 kB / 0.5243 GB, free: 87.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.7162, allocations: 4 kB / 0.5243 GB, free: 87.7 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.352e-05/0.7163, allocations: 31.98 kB / 0.5243 GB, free: 87.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.7163, allocations: 7.844 kB / 0.5243 GB, free: 87.67 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.7163, allocations: 7.953 kB / 0.5243 GB, free: 87.66 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00138/0.7177, allocations: 1.396 MB / 0.5257 GB, free: 86.21 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007141/0.7184, allocations: 0.5659 MB / 0.5262 GB, free: 85.62 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001333/0.7186, allocations: 55.97 kB / 0.5263 GB, free: 85.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002737/0.7188, allocations: 39.88 kB / 0.5263 GB, free: 85.53 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003351/0.7192, allocations: 243.7 kB / 0.5266 GB, free: 85.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001301/0.7193, allocations: 159.8 kB / 0.5267 GB, free: 85.14 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008715/0.7202, allocations: 0.8577 MB / 0.5275 GB, free: 84.29 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.7202, allocations: 0 / 0.5275 GB, free: 84.29 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004251/0.7207, allocations: 128 kB / 0.5277 GB, free: 84.16 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.001696/0.7224, allocations: 2.02 MB / 0.5296 GB, free: 82.08 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001291/0.7237, allocations: 1.525 MB / 0.5311 GB, free: 80.47 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.7237, allocations: 0 / 0.5311 GB, free: 80.47 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007263/0.7244, allocations: 1.123 MB / 0.5322 GB, free: 79.27 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000891/0.7253, allocations: 270.2 kB / 0.5325 GB, free: 79.01 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005089/0.7304, allocations: 4.902 MB / 0.5373 GB, free: 74.04 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005623/0.731, allocations: 1.038 MB / 0.5383 GB, free: 72.98 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001478/0.7312, allocations: 46.25 kB / 0.5383 GB, free: 72.94 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.138e-05/0.7312, allocations: 75.41 kB / 0.5384 GB, free: 72.87 MB / 378.7 MB Notification: Performance of SimCode: time 6.31e-07/0.7313, allocations: 0 / 0.5384 GB, free: 72.87 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02587/0.7571, allocations: 16.46 MB / 0.5545 GB, free: 56.43 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001366/0.7573, allocations: 165.7 kB / 0.5546 GB, free: 56.2 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.176/2.933, allocations: 4 kB / 0.5546 GB, free: 56.19 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DFFREGL_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DFFREGL.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGL_res.mat does not exist to compare? outputFormat=mat