Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Electrical_Digital_Examples_DFFREGSRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGSRL,fileNamePrefix="Modelica_3_2_3_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.001208/0.001208, allocations: 177.7 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.569/1.569, allocations: 205.3 MB / 214.4 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008514/0.0008515, allocations: 84.11 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.041e-05/2.043e-05, allocations: 7.984 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1007, allocations: 47.59 MB / 363.2 MB, free: 6.973 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3001/0.4009, allocations: 81.99 MB / 445.2 MB, free: 13.31 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001829/0.4011, allocations: 66.41 kB / 445.2 MB, free: 13.28 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05738/0.4585, allocations: 32.61 MB / 477.8 MB, free: 2.16 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.482e-06/0.4586, allocations: 0 / 477.8 MB, free: 2.16 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.92e-05/0.4586, allocations: 20 kB / 477.9 MB, free: 2.141 MB / 346.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.001305/0.46, allocations: 1.308 MB / 479.2 MB, free: 0.8125 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.46, allocations: 12.03 kB / 479.2 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000179/0.4602, allocations: 134.4 kB / 479.3 MB, free: 0.668 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006582/0.4609, allocations: 0.5101 MB / 479.8 MB, free: 148 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.998e-05/0.4609, allocations: 23.3 kB / 479.8 MB, free: 128 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.099e-05/0.461, allocations: 24 kB / 479.9 MB, free: 104 kB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005806/0.4616, allocations: 445 kB / 480.3 MB, free: 15.8 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007556/0.4623, allocations: 0.5824 MB / 480.9 MB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.4624, allocations: 7.938 kB / 480.9 MB, free: 15.35 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.319e-05/0.4624, allocations: 19.55 kB / 480.9 MB, free: 15.33 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.4624, allocations: 0 / 480.9 MB, free: 15.33 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001491/0.4639, allocations: 1.059 MB / 482 MB, free: 14.45 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007037/0.4647, allocations: 0.6697 MB / 482.6 MB, free: 13.9 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006717/0.4653, allocations: 0.6646 MB / 483.3 MB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.095e-05/0.4654, allocations: 0 / 483.3 MB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008566/0.4662, allocations: 0.7554 MB / 484.1 MB, free: 12.44 MB / 362.7 MB Notification: Performance of pre-optimization done (n=36): time 1.513e-06/0.4662, allocations: 0 / 484.1 MB, free: 12.44 MB / 362.7 MB Notification: Performance of matching and sorting (n=36): time 0.001582/0.4678, allocations: 1.101 MB / 485.2 MB, free: 11.33 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001602/0.468, allocations: 325 kB / 485.5 MB, free: 10.95 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001875/0.4699, allocations: 1.538 MB / 487 MB, free: 9.398 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.574e-05/0.47, allocations: 37.7 kB / 487 MB, free: 9.355 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002113/0.4702, allocations: 238.4 kB / 487.3 MB, free: 9.117 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001084/0.4703, allocations: 87.23 kB / 487.4 MB, free: 9.031 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.284e-05/0.4704, allocations: 8 kB / 487.4 MB, free: 9.023 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.4705, allocations: 386.7 kB / 487.8 MB, free: 8.637 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005446/0.4711, allocations: 432 kB / 488.2 MB, free: 8.211 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005151/0.4716, allocations: 432 kB / 488.6 MB, free: 7.789 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003688/0.472, allocations: 304.5 kB / 488.9 MB, free: 7.492 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.472, allocations: 0 / 488.9 MB, free: 7.492 MB / 362.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001374/0.4734, allocations: 1.029 MB / 489.9 MB, free: 6.457 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002094/0.4736, allocations: 289.5 kB / 490.2 MB, free: 6.125 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/0.4736, allocations: 0 / 490.2 MB, free: 6.125 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/0.4736, allocations: 0 / 490.2 MB, free: 6.125 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.144e-05/0.4737, allocations: 11.94 kB / 490.2 MB, free: 6.113 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.4737, allocations: 0 / 490.2 MB, free: 6.113 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003632/0.4741, allocations: 43.81 kB / 490.3 MB, free: 6.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001784/0.4743, allocations: 159.9 kB / 490.4 MB, free: 5.914 MB / 362.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.0004115/0.4747, allocations: 470.4 kB / 490.9 MB, free: 5.398 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0015/0.4762, allocations: 1.16 MB / 492 MB, free: 4.23 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001434/0.4763, allocations: 134.4 kB / 492.2 MB, free: 4.098 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005388/0.4769, allocations: 248 kB / 492.4 MB, free: 3.852 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.4769, allocations: 4 kB / 492.4 MB, free: 3.848 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.241e-06/0.4769, allocations: 0 / 492.4 MB, free: 3.848 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.4769, allocations: 3.984 kB / 492.4 MB, free: 3.844 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00258/0.4795, allocations: 2.013 MB / 494.4 MB, free: 1.781 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.4795, allocations: 0 / 494.4 MB, free: 1.781 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.404e-05/0.4795, allocations: 0 / 494.4 MB, free: 1.781 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/0.4795, allocations: 0 / 494.4 MB, free: 1.781 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.995e-05/0.4796, allocations: 35.98 kB / 494.5 MB, free: 1.746 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.458e-06/0.4796, allocations: 4 kB / 494.5 MB, free: 1.742 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.4797, allocations: 3.938 kB / 494.5 MB, free: 1.738 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001628/0.4813, allocations: 1.277 MB / 495.7 MB, free: 452 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009766/0.4823, allocations: 0.6785 MB / 496.4 MB, free: 15.74 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001899/0.4825, allocations: 63.95 kB / 496.5 MB, free: 15.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003616/0.4828, allocations: 31.97 kB / 496.5 MB, free: 15.65 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005521/0.4834, allocations: 351.7 kB / 496.9 MB, free: 15.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000182/0.4836, allocations: 155.9 kB / 497 MB, free: 15.15 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001662/0.4853, allocations: 1.262 MB / 498.3 MB, free: 13.89 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.573e-06/0.4853, allocations: 0 / 498.3 MB, free: 13.89 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004968/0.4858, allocations: 147.9 kB / 498.4 MB, free: 13.74 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.002054/0.4878, allocations: 1.912 MB / 0.4886 GB, free: 11.8 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001927/0.4898, allocations: 1.874 MB / 0.4904 GB, free: 9.824 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.4898, allocations: 4 kB / 0.4904 GB, free: 9.82 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001211/0.491, allocations: 1.366 MB / 0.4918 GB, free: 8.355 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001279/0.4923, allocations: 298.5 kB / 0.4921 GB, free: 8.066 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004141/0.4965, allocations: 2.687 MB / 0.4947 GB, free: 5.324 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009755/0.4975, allocations: 1.213 MB / 0.4959 GB, free: 4.086 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003052/0.4978, allocations: 151 kB / 0.496 GB, free: 3.938 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001627/0.4979, allocations: 151.4 kB / 0.4962 GB, free: 3.789 MB / 378.7 MB Notification: Performance of SimCode: time 1.032e-06/0.4979, allocations: 0 / 0.4962 GB, free: 3.789 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04332/0.5413, allocations: 20.84 MB / 0.5165 GB, free: 14.52 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003169/0.5416, allocations: 137 kB / 0.5166 GB, free: 14.32 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.212/2.754, allocations: 0 / 0.5166 GB, free: 14.32 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRL_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DFFREGSRL_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DFFREGSRL.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRL_res.mat does not exist to compare? outputFormat=mat