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.001537/0.001537, allocations: 177.8 kB / 8.36 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.01/2.01, 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.001133/0.001132, allocations: 87.77 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.647e-05/2.643e-05, allocations: 4 kB / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3397/0.3398, allocations: 47.57 MB / 362.4 MB, free: 45.88 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1355/0.4753, allocations: 81.75 MB / 444.2 MB, free: 4.543 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003104/0.4757, allocations: 74.56 kB / 444.3 MB, free: 4.473 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1101/0.5858, allocations: 32.62 MB / 476.9 MB, free: 3.957 MB / 363.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.5859, allocations: 0 / 476.9 MB, free: 3.957 MB / 363.1 MB Notification: Performance of Transformations before backend: time 4.965e-05/0.586, allocations: 12 kB / 476.9 MB, free: 3.945 MB / 363.1 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.002095/0.5881, allocations: 1.305 MB / 478.2 MB, free: 2.543 MB / 363.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.715e-05/0.5881, allocations: 8.031 kB / 478.2 MB, free: 2.535 MB / 363.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000369/0.5885, allocations: 134.4 kB / 478.3 MB, free: 2.402 MB / 363.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001213/0.5897, allocations: 0.5129 MB / 478.8 MB, free: 1.84 MB / 363.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.76e-05/0.5898, allocations: 20 kB / 478.9 MB, free: 1.82 MB / 363.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001326/0.59, allocations: 32 kB / 478.9 MB, free: 1.789 MB / 363.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001048/0.591, allocations: 438.7 kB / 479.3 MB, free: 1.363 MB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001423/0.5925, allocations: 0.5871 MB / 479.9 MB, free: 0.7695 MB / 363.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.5925, allocations: 4 kB / 479.9 MB, free: 0.7656 MB / 363.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001014/0.5926, allocations: 12 kB / 479.9 MB, free: 0.7539 MB / 363.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.739e-06/0.5927, allocations: 4 kB / 479.9 MB, free: 0.75 MB / 363.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00268/0.5953, allocations: 1.059 MB / 481 MB, free: 15.65 MB / 379.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001412/0.5968, allocations: 0.6625 MB / 481.7 MB, free: 14.98 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001241/0.5981, allocations: 0.6646 MB / 482.3 MB, free: 14.31 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.952e-05/0.5981, allocations: 4 kB / 482.3 MB, free: 14.3 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001519/0.5996, allocations: 0.7656 MB / 483.1 MB, free: 13.5 MB / 379.1 MB Notification: Performance of pre-optimization done (n=36): time 4.629e-06/0.5997, allocations: 0 / 483.1 MB, free: 13.5 MB / 379.1 MB Notification: Performance of matching and sorting (n=36): time 0.002881/0.6026, allocations: 1.093 MB / 484.2 MB, free: 12.4 MB / 379.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000303/0.6029, allocations: 321 kB / 484.5 MB, free: 12.03 MB / 379.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003908/0.6068, allocations: 1.538 MB / 486 MB, free: 10.48 MB / 379.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002636/0.6072, allocations: 45.69 kB / 486.1 MB, free: 10.43 MB / 379.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003134/0.6075, allocations: 248.9 kB / 486.3 MB, free: 10.18 MB / 379.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002561/0.6078, allocations: 87.23 kB / 486.4 MB, free: 10.09 MB / 379.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.091e-05/0.6079, allocations: 12 kB / 486.4 MB, free: 10.08 MB / 379.1 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.608, allocations: 322.8 kB / 486.7 MB, free: 9.758 MB / 379.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001019/0.6091, allocations: 432 kB / 487.2 MB, free: 9.332 MB / 379.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009934/0.6101, allocations: 444 kB / 487.6 MB, free: 8.898 MB / 379.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006631/0.6107, allocations: 297.6 kB / 487.9 MB, free: 8.609 MB / 379.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.6108, allocations: 3.938 kB / 487.9 MB, free: 8.605 MB / 379.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.00256/0.6133, allocations: 0.9938 MB / 488.9 MB, free: 7.605 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003411/0.6137, allocations: 293.5 kB / 489.2 MB, free: 7.27 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.298e-06/0.6137, allocations: 4 kB / 489.2 MB, free: 7.266 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.424e-05/0.6138, allocations: 4 kB / 489.2 MB, free: 7.262 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.976e-05/0.6138, allocations: 0 / 489.2 MB, free: 7.262 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.708e-06/0.6139, allocations: 4 kB / 489.2 MB, free: 7.258 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007175/0.6146, allocations: 47.81 kB / 489.2 MB, free: 7.211 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003002/0.6149, allocations: 151.9 kB / 489.4 MB, free: 7.062 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: 43 ($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,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].y,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,$PRE.dFFREGSRL.delay.inertialDelaySensitive[2].y,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 () * 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.0006923/0.6156, allocations: 466.4 kB / 489.8 MB, free: 6.551 MB / 379.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002931/0.6186, allocations: 1.163 MB / 491 MB, free: 5.383 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002844/0.6189, allocations: 142.3 kB / 491.1 MB, free: 5.242 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008696/0.6198, allocations: 248.1 kB / 491.4 MB, free: 4.996 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.643e-06/0.6198, allocations: 0 / 491.4 MB, free: 4.996 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.6198, allocations: 0 / 491.4 MB, free: 4.996 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.759e-06/0.6198, allocations: 3.984 kB / 491.4 MB, free: 4.992 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004585/0.6244, allocations: 2.009 MB / 493.4 MB, free: 2.934 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.6245, allocations: 0 / 493.4 MB, free: 2.934 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.242e-05/0.6245, allocations: 11.92 kB / 493.4 MB, free: 2.922 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.634e-06/0.6246, allocations: 0 / 493.4 MB, free: 2.922 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001178/0.6247, allocations: 35.98 kB / 493.4 MB, free: 2.887 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.6247, allocations: 0 / 493.4 MB, free: 2.887 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.6247, allocations: 0 / 493.4 MB, free: 2.887 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002877/0.6276, allocations: 1.265 MB / 494.7 MB, free: 1.602 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002039/0.6297, allocations: 0.6902 MB / 495.4 MB, free: 0.8906 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003108/0.6301, allocations: 51.97 kB / 495.4 MB, free: 0.8398 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006443/0.6307, allocations: 39.97 kB / 495.5 MB, free: 0.8008 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009956/0.6317, allocations: 347.6 kB / 495.8 MB, free: 472 kB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002922/0.632, allocations: 163.9 kB / 496 MB, free: 308 kB / 379.1 MB Notification: Performance of sorting global known variables: time 0.00312/0.6352, allocations: 1.251 MB / 497.2 MB, free: 15.05 MB / 395.1 MB Notification: Performance of sort global known variables: time 6.61e-07/0.6352, allocations: 3.938 kB / 497.2 MB, free: 15.04 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.001036/0.6363, allocations: 144 kB / 497.4 MB, free: 14.9 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: 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) * 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.00349/0.6398, allocations: 1.919 MB / 499.3 MB, free: 12.95 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.00311/0.6429, allocations: 1.87 MB / 0.4894 GB, free: 10.98 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.643, allocations: 0 / 0.4894 GB, free: 10.98 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002022/0.645, allocations: 1.374 MB / 0.4907 GB, free: 9.508 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002024/0.647, allocations: 298.8 kB / 0.491 GB, free: 9.219 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007447/0.6545, allocations: 2.774 MB / 0.4937 GB, free: 6.383 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001595/0.6561, allocations: 1.228 MB / 0.4949 GB, free: 5.129 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002876/0.6565, allocations: 148.4 kB / 0.4951 GB, free: 4.984 MB / 395.1 MB Notification: Performance of SimCode: time 1.122e-06/0.6565, allocations: 0 / 0.4951 GB, free: 4.984 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.238/3.894, allocations: 14.9 MB / 0.5096 GB, free: 116.4 MB / 395.1 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