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: translateModel(Modelica.Electrical.Digital.Examples.DFFREGSRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGSRL.dataOut.1.|dFFREGSRL.dataOut.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL") translateModel(Modelica.Electrical.Digital.Examples.DFFREGSRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGSRL.dataOut.1.|dFFREGSRL.dataOut.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001485/0.001485, 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 1.997/1.997, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001539/0.001539, allocations: 82.72 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.758e-05/2.775e-05, allocations: 4 kB / 321.5 MB, free: 17.85 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09778/0.09782, allocations: 47.58 MB / 369.1 MB, free: 2.199 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4047/0.5026, allocations: 82.41 MB / 451.5 MB, free: 10.73 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002573/0.5029, allocations: 69.58 kB / 451.6 MB, free: 10.7 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1085/0.6114, allocations: 32.81 MB / 484.4 MB, free: 11.95 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.6115, allocations: 0 / 484.4 MB, free: 11.95 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.771e-05/0.6115, allocations: 16 kB / 484.4 MB, free: 11.93 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.001917/0.6135, allocations: 1.311 MB / 485.7 MB, free: 10.52 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/0.6135, allocations: 8.031 kB / 485.7 MB, free: 10.51 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003013/0.6138, allocations: 134.4 kB / 485.8 MB, free: 10.38 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001111/0.6149, allocations: 0.5051 MB / 486.3 MB, free: 9.824 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.099e-05/0.615, allocations: 24 kB / 486.4 MB, free: 9.801 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001316/0.6152, allocations: 31.98 kB / 486.4 MB, free: 9.77 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00153/0.6167, allocations: 0.6144 MB / 487 MB, free: 9.148 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.6167, allocations: 0 / 487 MB, free: 9.148 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001016/0.6169, allocations: 19.98 kB / 487 MB, free: 9.129 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.007e-06/0.6169, allocations: 7.984 kB / 487 MB, free: 9.121 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001098/0.618, allocations: 463.7 kB / 487.5 MB, free: 8.668 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002663/0.6207, allocations: 1.088 MB / 488.6 MB, free: 7.523 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001454/0.6222, allocations: 0.7032 MB / 489.3 MB, free: 6.812 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001318/0.6235, allocations: 0.6803 MB / 490 MB, free: 6.129 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.25e-05/0.6236, allocations: 0 / 490 MB, free: 6.129 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001553/0.6251, allocations: 0.7593 MB / 490.7 MB, free: 5.332 MB / 362.7 MB Notification: Performance of pre-optimization done (n=36): time 3.276e-06/0.6252, allocations: 0 / 490.7 MB, free: 5.332 MB / 362.7 MB Notification: Performance of matching and sorting (n=36): time 0.003186/0.6283, allocations: 1.403 MB / 492.1 MB, free: 3.871 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002887/0.6287, allocations: 340.9 kB / 492.5 MB, free: 3.477 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004004/0.6327, allocations: 1.594 MB / 494.1 MB, free: 1.867 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002585/0.633, allocations: 49.69 kB / 494.1 MB, free: 1.812 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003065/0.6333, allocations: 240.9 kB / 494.3 MB, free: 1.574 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002078/0.6336, allocations: 83.23 kB / 494.4 MB, free: 1.492 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.516e-05/0.6337, allocations: 15.98 kB / 494.4 MB, free: 1.477 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.6338, allocations: 326.8 kB / 494.8 MB, free: 1.148 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001077/0.6349, allocations: 448 kB / 495.2 MB, free: 0.707 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001037/0.636, allocations: 456.1 kB / 495.6 MB, free: 268 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001055/0.637, allocations: 0.588 MB / 496.2 MB, free: 15.62 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.159e-06/0.6371, allocations: 0 / 496.2 MB, free: 15.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002957/0.64, allocations: 1.308 MB / 497.5 MB, free: 14.26 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003138/0.6404, allocations: 293.5 kB / 497.8 MB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.6404, allocations: 0 / 497.8 MB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.697e-05/0.6404, allocations: 0 / 497.8 MB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.407e-05/0.6405, allocations: 4 kB / 497.8 MB, free: 13.92 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.083e-05/0.6405, allocations: 3.938 kB / 497.8 MB, free: 13.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007087/0.6412, allocations: 51.81 kB / 497.9 MB, free: 13.87 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002859/0.6416, allocations: 151.9 kB / 498 MB, free: 13.72 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.0006279/0.6422, allocations: 462.5 kB / 498.5 MB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000295/0.6425, allocations: 134.5 kB / 498.6 MB, free: 13.08 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007834/0.6433, allocations: 259.7 kB / 498.9 MB, free: 12.82 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.205e-06/0.6433, allocations: 4 kB / 498.9 MB, free: 12.82 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.6433, allocations: 0 / 498.9 MB, free: 12.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.6434, allocations: 4 kB / 498.9 MB, free: 12.81 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005484/0.6489, allocations: 2.395 MB / 0.4895 GB, free: 10.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.484e-06/0.6489, allocations: 0 / 0.4895 GB, free: 10.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.776e-05/0.6489, allocations: 4 kB / 0.4895 GB, free: 10.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.406e-06/0.649, allocations: 0 / 0.4895 GB, free: 10.3 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001373/0.6491, allocations: 39.97 kB / 0.4896 GB, free: 10.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.047e-06/0.6491, allocations: 4 kB / 0.4896 GB, free: 10.26 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.6491, allocations: 0 / 0.4896 GB, free: 10.26 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004815/0.654, allocations: 1.614 MB / 0.4911 GB, free: 8.574 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002984/0.657, allocations: 0.6863 MB / 0.4918 GB, free: 7.867 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000502/0.6576, allocations: 67.95 kB / 0.4919 GB, free: 7.801 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001009/0.6586, allocations: 39.81 kB / 0.4919 GB, free: 7.762 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001504/0.6601, allocations: 359.6 kB / 0.4923 GB, free: 7.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005528/0.6607, allocations: 159.9 kB / 0.4924 GB, free: 7.254 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.005912/0.6667, allocations: 1.315 MB / 0.4937 GB, free: 5.934 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.443e-06/0.6667, allocations: 0 / 0.4937 GB, free: 5.934 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001425/0.6682, allocations: 152 kB / 0.4938 GB, free: 5.785 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.0004307/0.6686, allocations: 189.6 kB / 0.494 GB, free: 5.59 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003421/0.6721, allocations: 1.921 MB / 0.4959 GB, free: 3.57 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.6721, allocations: 4 kB / 0.4959 GB, free: 3.566 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002126/0.6743, allocations: 1.386 MB / 0.4972 GB, free: 2.082 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001945/0.6762, allocations: 306.2 kB / 0.4975 GB, free: 1.781 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006377/0.6826, allocations: 2.575 MB / 0.5001 GB, free: 15.16 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001552/0.6842, allocations: 1.217 MB / 0.5012 GB, free: 13.92 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.165e-05/0.6844, allocations: 27.44 kB / 0.5013 GB, free: 13.89 MB / 394.7 MB Notification: Performance of SimCode: time 1.092e-06/0.6844, allocations: 0 / 0.5013 GB, free: 13.89 MB / 394.7 MB Notification: Performance of Templates: time 0.0257/0.7101, allocations: 11.41 MB / 0.5124 GB, free: 2.246 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.makefile (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 & ./Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/DFFREGSRL/DFFREGSRL.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches