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.001581/0.001581, allocations: 181.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.138/2.138, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.001107/0.001106, allocations: 86.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.53e-05/3.542e-05, allocations: 4 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0954/0.09547, allocations: 47.58 MB / 369.2 MB, free: 2.098 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4191/0.5146, allocations: 82.4 MB / 451.6 MB, free: 10.77 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002648/0.5149, allocations: 66.47 kB / 451.7 MB, free: 10.74 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1127/0.6277, allocations: 32.82 MB / 484.5 MB, free: 11.85 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.375e-06/0.6277, allocations: 0 / 484.5 MB, free: 11.85 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.23e-05/0.6278, allocations: 12 kB / 484.5 MB, free: 11.84 MB / 362.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.002388/0.6302, allocations: 1.303 MB / 485.8 MB, free: 10.43 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.601e-05/0.6303, allocations: 8.031 kB / 485.8 MB, free: 10.43 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000255/0.6305, allocations: 66.53 kB / 485.9 MB, free: 10.35 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003099/0.6309, allocations: 134.4 kB / 486 MB, free: 10.22 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001264/0.6321, allocations: 0.5051 MB / 486.5 MB, free: 9.664 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.397e-05/0.6322, allocations: 20 kB / 486.5 MB, free: 9.645 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001344/0.6324, allocations: 35.92 kB / 486.6 MB, free: 9.609 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001615/0.634, allocations: 0.6222 MB / 487.2 MB, free: 8.98 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.556e-05/0.6341, allocations: 0 / 487.2 MB, free: 8.98 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001062/0.6342, allocations: 31.91 kB / 487.2 MB, free: 8.949 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.6342, allocations: 0 / 487.2 MB, free: 8.949 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001156/0.6354, allocations: 457.1 kB / 487.7 MB, free: 8.504 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002841/0.6382, allocations: 1.103 MB / 488.8 MB, free: 7.344 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001535/0.6398, allocations: 0.6838 MB / 489.4 MB, free: 6.652 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001546/0.6414, allocations: 0.6803 MB / 490.1 MB, free: 5.969 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.916e-05/0.6415, allocations: 4 kB / 490.1 MB, free: 5.965 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001752/0.6433, allocations: 0.7592 MB / 490.9 MB, free: 5.168 MB / 362.7 MB Notification: Performance of pre-optimization done (n=36): time 4.198e-06/0.6433, allocations: 0 / 490.9 MB, free: 5.168 MB / 362.7 MB Notification: Performance of matching and sorting (n=36): time 0.003563/0.6469, allocations: 1.411 MB / 492.3 MB, free: 3.699 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002957/0.6472, allocations: 329 kB / 492.6 MB, free: 3.316 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00432/0.6516, allocations: 1.598 MB / 494.2 MB, free: 1.703 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002558/0.6519, allocations: 45.69 kB / 494.3 MB, free: 1.652 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000324/0.6522, allocations: 248.9 kB / 494.5 MB, free: 1.406 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002112/0.6524, allocations: 83.23 kB / 494.6 MB, free: 1.324 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.171e-05/0.6526, allocations: 15.98 kB / 494.6 MB, free: 1.309 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.6527, allocations: 322.8 kB / 494.9 MB, free: 0.9844 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001142/0.6539, allocations: 456 kB / 495.4 MB, free: 0.5352 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001084/0.655, allocations: 448.2 kB / 495.8 MB, free: 100 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001084/0.6561, allocations: 0.584 MB / 496.4 MB, free: 15.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.6561, allocations: 4 kB / 496.4 MB, free: 15.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.003056/0.6592, allocations: 1.312 MB / 497.7 MB, free: 14.09 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000327/0.6596, allocations: 289.5 kB / 498 MB, free: 13.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.6596, allocations: 0 / 498 MB, free: 13.76 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.092e-05/0.6596, allocations: 4 kB / 498 MB, free: 13.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.441e-05/0.6597, allocations: 4 kB / 498 MB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.433e-05/0.6597, allocations: 4 kB / 498 MB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006825/0.6604, allocations: 51.81 kB / 498 MB, free: 13.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002937/0.6607, allocations: 151.9 kB / 498.2 MB, free: 13.55 MB / 378.7 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.0006598/0.6614, allocations: 458.4 kB / 498.6 MB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000319/0.6617, allocations: 138.5 kB / 498.8 MB, free: 12.91 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000823/0.6626, allocations: 251.7 kB / 499 MB, free: 12.66 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.6626, allocations: 4 kB / 499 MB, free: 12.66 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.625e-06/0.6626, allocations: 0 / 499 MB, free: 12.66 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.6626, allocations: 4 kB / 499 MB, free: 12.65 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005473/0.6681, allocations: 2.391 MB / 0.4897 GB, free: 10.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.374e-06/0.6682, allocations: 0 / 0.4897 GB, free: 10.15 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.067e-05/0.6682, allocations: 8 kB / 0.4897 GB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.384e-06/0.6682, allocations: 0 / 0.4897 GB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001336/0.6684, allocations: 47.97 kB / 0.4897 GB, free: 10.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.532e-06/0.6684, allocations: 3.984 kB / 0.4897 GB, free: 10.09 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.6684, allocations: 0 / 0.4897 GB, free: 10.09 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00356/0.672, allocations: 1.622 MB / 0.4913 GB, free: 8.398 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002061/0.6741, allocations: 0.6785 MB / 0.492 GB, free: 7.699 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003176/0.6745, allocations: 63.95 kB / 0.492 GB, free: 7.637 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006451/0.6751, allocations: 43.88 kB / 0.4921 GB, free: 7.594 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00095/0.6761, allocations: 355.6 kB / 0.4924 GB, free: 7.246 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002921/0.6764, allocations: 151.9 kB / 0.4926 GB, free: 7.098 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00356/0.68, allocations: 1.319 MB / 0.4938 GB, free: 5.773 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.946e-06/0.68, allocations: 0 / 0.4938 GB, free: 5.773 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009535/0.681, allocations: 159.9 kB / 0.494 GB, free: 5.617 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) * 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.004224/0.6852, allocations: 2.258 MB / 0.4962 GB, free: 3.281 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00361/0.6889, allocations: 1.917 MB / 0.4981 GB, free: 1.266 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.689, allocations: 0 / 0.4981 GB, free: 1.266 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002292/0.6913, allocations: 1.394 MB / 0.4994 GB, free: 15.77 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002116/0.6934, allocations: 300.8 kB / 0.4997 GB, free: 15.48 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007932/0.7014, allocations: 2.811 MB / 0.5025 GB, free: 12.61 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0017/0.7032, allocations: 1.209 MB / 0.5036 GB, free: 11.37 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002992/0.7035, allocations: 155.4 kB / 0.5038 GB, free: 11.22 MB / 394.7 MB Notification: Performance of SimCode: time 1.092e-06/0.7035, allocations: 0 / 0.5038 GB, free: 11.22 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.885/3.589, allocations: 14.97 MB / 0.5184 GB, free: 12.01 MB / 410.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