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.002004/0.002004, 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.046/2.046, 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.0011/0.0011, allocations: 88.91 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.086e-05/3.084e-05, allocations: 4 kB / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3429/0.3429, allocations: 47.56 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1329/0.4759, allocations: 81.5 MB / 443.9 MB, free: 4.723 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003133/0.4763, allocations: 71.94 kB / 444 MB, free: 4.652 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1317/0.6081, allocations: 37.46 MB / 481.5 MB, free: 15.31 MB / 379.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.6081, allocations: 0 / 481.5 MB, free: 15.31 MB / 379.1 MB Notification: Performance of Transformations before backend: time 3.994e-05/0.6082, allocations: 11.94 kB / 481.5 MB, free: 15.3 MB / 379.1 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.001677/0.6099, allocations: 1.009 MB / 482.5 MB, free: 14.2 MB / 379.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.578e-05/0.6099, allocations: 8.031 kB / 482.5 MB, free: 14.19 MB / 379.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003046/0.6103, allocations: 86.97 kB / 482.6 MB, free: 14.11 MB / 379.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001051/0.6113, allocations: 431.5 kB / 483 MB, free: 13.64 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.413e-05/0.6114, allocations: 20 kB / 483 MB, free: 13.62 MB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/0.6115, allocations: 20 kB / 483 MB, free: 13.6 MB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008563/0.6124, allocations: 348.1 kB / 483.4 MB, free: 13.26 MB / 379.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001192/0.6136, allocations: 494.2 kB / 483.9 MB, free: 12.77 MB / 379.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.6137, allocations: 0 / 483.9 MB, free: 12.77 MB / 379.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.684e-05/0.6138, allocations: 8 kB / 483.9 MB, free: 12.76 MB / 379.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.6138, allocations: 4 kB / 483.9 MB, free: 12.76 MB / 379.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002171/0.616, allocations: 0.821 MB / 484.7 MB, free: 11.9 MB / 379.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001055/0.6171, allocations: 0.4906 MB / 485.2 MB, free: 11.4 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000943/0.618, allocations: 484.7 kB / 485.6 MB, free: 10.92 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.862e-05/0.6181, allocations: 7.922 kB / 485.7 MB, free: 10.91 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001289/0.6194, allocations: 0.6587 MB / 486.3 MB, free: 10.21 MB / 379.1 MB Notification: Performance of pre-optimization done (n=34): time 3.997e-06/0.6194, allocations: 0 / 486.3 MB, free: 10.21 MB / 379.1 MB Notification: Performance of matching and sorting (n=34): time 0.002434/0.6218, allocations: 0.9055 MB / 487.2 MB, free: 9.305 MB / 379.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002569/0.6221, allocations: 279.3 kB / 487.5 MB, free: 8.977 MB / 379.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002359/0.6245, allocations: 0.9879 MB / 488.5 MB, free: 7.984 MB / 379.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002113/0.6248, allocations: 45.69 kB / 488.5 MB, free: 7.934 MB / 379.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001847/0.625, allocations: 200.4 kB / 488.7 MB, free: 7.734 MB / 379.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001886/0.6252, allocations: 75.11 kB / 488.8 MB, free: 7.66 MB / 379.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.936e-05/0.6253, allocations: 12 kB / 488.8 MB, free: 7.648 MB / 379.1 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.6254, allocations: 326.8 kB / 489.1 MB, free: 7.32 MB / 379.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007753/0.6262, allocations: 332.2 kB / 489.4 MB, free: 6.996 MB / 379.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007785/0.627, allocations: 340.5 kB / 489.8 MB, free: 6.664 MB / 379.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005696/0.6276, allocations: 249.3 kB / 490 MB, free: 6.422 MB / 379.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.6276, allocations: 0 / 490 MB, free: 6.422 MB / 379.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002144/0.6298, allocations: 0.8371 MB / 490.9 MB, free: 5.578 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000288/0.6301, allocations: 251.8 kB / 491.1 MB, free: 5.289 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.6301, allocations: 0 / 491.1 MB, free: 5.289 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.115e-05/0.6302, allocations: 7.938 kB / 491.1 MB, free: 5.281 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.921e-05/0.6302, allocations: 0 / 491.1 MB, free: 5.281 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.6302, allocations: 0 / 491.1 MB, free: 5.281 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006305/0.6309, allocations: 39.88 kB / 491.2 MB, free: 5.242 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002749/0.6312, allocations: 152.2 kB / 491.3 MB, free: 5.094 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: 40 ($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,$PRE.dFFREGL.delay.inertialDelaySensitive[1].y,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,$PRE.dFFREGL.delay.inertialDelaySensitive[2].y,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 () * 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.0005919/0.6318, allocations: 406 kB / 491.7 MB, free: 4.645 MB / 379.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002506/0.6343, allocations: 0.9728 MB / 492.7 MB, free: 3.664 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002275/0.6346, allocations: 90.92 kB / 492.8 MB, free: 3.574 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005364/0.6351, allocations: 148.1 kB / 492.9 MB, free: 3.43 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.899e-06/0.6351, allocations: 4 kB / 492.9 MB, free: 3.426 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/0.6352, allocations: 0 / 492.9 MB, free: 3.426 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/0.6352, allocations: 3.984 kB / 492.9 MB, free: 3.422 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00385/0.639, allocations: 1.627 MB / 494.5 MB, free: 1.75 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.593e-06/0.6391, allocations: 0 / 494.5 MB, free: 1.75 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.449e-05/0.6391, allocations: 0 / 494.5 MB, free: 1.75 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.945e-06/0.6392, allocations: 0 / 494.5 MB, free: 1.75 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000118/0.6393, allocations: 39.97 kB / 494.6 MB, free: 1.711 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.457e-06/0.6393, allocations: 0 / 494.6 MB, free: 1.711 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.6393, allocations: 0 / 494.6 MB, free: 1.711 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002575/0.6419, allocations: 1.073 MB / 495.7 MB, free: 0.6211 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001692/0.6437, allocations: 0.5737 MB / 496.2 MB, free: 28 kB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003222/0.644, allocations: 55.97 kB / 496.3 MB, free: 15.97 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005655/0.6446, allocations: 31.97 kB / 496.3 MB, free: 15.94 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006873/0.6453, allocations: 235.7 kB / 496.5 MB, free: 15.71 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002988/0.6456, allocations: 171.8 kB / 496.7 MB, free: 15.54 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.002046/0.6477, allocations: 0.8109 MB / 497.5 MB, free: 14.73 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.072e-06/0.6477, allocations: 0 / 497.5 MB, free: 14.73 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0009216/0.6486, allocations: 120 kB / 497.6 MB, free: 14.62 MB / 395.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: 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) * 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.00329/0.652, allocations: 1.717 MB / 499.4 MB, free: 12.87 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.002786/0.6548, allocations: 1.476 MB / 0.4891 GB, free: 11.31 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 7.565e-06/0.6549, allocations: 0 / 0.4891 GB, free: 11.31 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001781/0.6567, allocations: 1.098 MB / 0.4902 GB, free: 10.12 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002175/0.6589, allocations: 277.4 kB / 0.4904 GB, free: 9.859 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005636/0.6646, allocations: 1.933 MB / 0.4923 GB, free: 7.875 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001184/0.6658, allocations: 1.042 MB / 0.4933 GB, free: 6.809 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001734/0.666, allocations: 71.42 kB / 0.4934 GB, free: 6.738 MB / 395.1 MB Notification: Performance of SimCode: time 1.553e-06/0.6661, allocations: 0 / 0.4934 GB, free: 6.738 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.14/3.806, allocations: 9.438 MB / 0.5026 GB, free: 118.9 MB / 395.1 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