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.002842/0.002842, 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.041/2.041, allocations: 205.3 MB / 214.1 MB, free: 14.15 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.001219/0.001218, allocations: 93.33 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.134e-05/2.133e-05, allocations: 4 kB / 314.8 MB, free: 9.164 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3728/0.3728, allocations: 47.56 MB / 362.3 MB, free: 45.86 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.133/0.5059, allocations: 81.75 MB / 444.1 MB, free: 4.574 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002742/0.5062, allocations: 74.88 kB / 444.2 MB, free: 4.504 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1104/0.6166, allocations: 32.62 MB / 476.8 MB, free: 3.992 MB / 363.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.6167, allocations: 0 / 476.8 MB, free: 3.992 MB / 363.1 MB Notification: Performance of Transformations before backend: time 4.871e-05/0.6168, allocations: 12 kB / 476.8 MB, free: 3.98 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.002191/0.619, allocations: 1.302 MB / 478.1 MB, free: 2.582 MB / 363.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.619, allocations: 12.03 kB / 478.1 MB, free: 2.57 MB / 363.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003524/0.6194, allocations: 134.4 kB / 478.2 MB, free: 2.438 MB / 363.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001174/0.6206, allocations: 0.509 MB / 478.7 MB, free: 1.879 MB / 363.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.932e-05/0.6207, allocations: 20 kB / 478.8 MB, free: 1.859 MB / 363.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001235/0.6208, allocations: 24 kB / 478.8 MB, free: 1.836 MB / 363.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001109/0.6219, allocations: 446.6 kB / 479.2 MB, free: 1.402 MB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001411/0.6234, allocations: 0.5871 MB / 479.8 MB, free: 0.8086 MB / 363.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.6234, allocations: 0 / 479.8 MB, free: 0.8086 MB / 363.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001017/0.6235, allocations: 12 kB / 479.8 MB, free: 0.7969 MB / 363.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.6236, allocations: 4 kB / 479.8 MB, free: 0.793 MB / 363.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002751/0.6263, allocations: 1.055 MB / 480.9 MB, free: 15.7 MB / 379.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00145/0.6278, allocations: 0.6664 MB / 481.5 MB, free: 15.02 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001322/0.6292, allocations: 0.6607 MB / 482.2 MB, free: 14.36 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.328e-05/0.6293, allocations: 4 kB / 482.2 MB, free: 14.35 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001589/0.6309, allocations: 0.7578 MB / 483 MB, free: 13.56 MB / 379.1 MB Notification: Performance of pre-optimization done (n=36): time 4.288e-06/0.6309, allocations: 3.938 kB / 483 MB, free: 13.55 MB / 379.1 MB Notification: Performance of matching and sorting (n=36): time 0.002877/0.6338, allocations: 1.101 MB / 484.1 MB, free: 12.45 MB / 379.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000306/0.6342, allocations: 321 kB / 484.4 MB, free: 12.07 MB / 379.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00412/0.6383, allocations: 1.545 MB / 485.9 MB, free: 10.52 MB / 379.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002604/0.6386, allocations: 41.7 kB / 486 MB, free: 10.47 MB / 379.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003551/0.639, allocations: 248.9 kB / 486.2 MB, free: 10.22 MB / 379.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002462/0.6392, allocations: 83.23 kB / 486.3 MB, free: 10.14 MB / 379.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.808e-05/0.6393, allocations: 12 kB / 486.3 MB, free: 10.13 MB / 379.1 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.6395, allocations: 326.8 kB / 486.6 MB, free: 9.801 MB / 379.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001046/0.6406, allocations: 432 kB / 487 MB, free: 9.375 MB / 379.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001039/0.6416, allocations: 440 kB / 487.5 MB, free: 8.945 MB / 379.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007517/0.6424, allocations: 297.6 kB / 487.8 MB, free: 8.656 MB / 379.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.6425, allocations: 0 / 487.8 MB, free: 8.656 MB / 379.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002643/0.6451, allocations: 1.002 MB / 488.8 MB, free: 7.648 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003323/0.6455, allocations: 293.5 kB / 489.1 MB, free: 7.312 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.274e-05/0.6455, allocations: 8 kB / 489.1 MB, free: 7.305 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.435e-05/0.6456, allocations: 4 kB / 489.1 MB, free: 7.301 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.097e-05/0.6456, allocations: 0 / 489.1 MB, free: 7.301 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/0.6456, allocations: 0 / 489.1 MB, free: 7.301 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007546/0.6464, allocations: 47.8 kB / 489.1 MB, free: 7.254 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002921/0.6467, allocations: 159.9 kB / 489.3 MB, free: 7.098 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.0006826/0.6474, allocations: 458.4 kB / 489.7 MB, free: 6.594 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000324/0.6478, allocations: 126.5 kB / 489.8 MB, free: 6.469 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008284/0.6486, allocations: 256 kB / 490.1 MB, free: 6.215 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.628e-06/0.6486, allocations: 4 kB / 490.1 MB, free: 6.211 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.665e-06/0.6487, allocations: 0 / 490.1 MB, free: 6.211 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.6487, allocations: 0 / 490.1 MB, free: 6.211 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005081/0.6538, allocations: 2.013 MB / 492.1 MB, free: 4.148 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.261e-05/0.6538, allocations: 4 kB / 492.1 MB, free: 4.145 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.686e-05/0.6539, allocations: 0 / 492.1 MB, free: 4.145 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.252e-05/0.6539, allocations: 3.953 kB / 492.1 MB, free: 4.141 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001614/0.6541, allocations: 39.97 kB / 492.2 MB, free: 4.102 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.951e-06/0.6541, allocations: 4 kB / 492.2 MB, free: 4.098 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.6541, allocations: 0 / 492.2 MB, free: 4.098 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003049/0.6572, allocations: 1.261 MB / 493.4 MB, free: 2.816 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002169/0.6594, allocations: 0.6824 MB / 494.1 MB, free: 2.113 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004013/0.6598, allocations: 67.92 kB / 494.2 MB, free: 2.047 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008205/0.6607, allocations: 39.88 kB / 494.2 MB, free: 2.008 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00101/0.6617, allocations: 351.6 kB / 494.6 MB, free: 1.664 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003559/0.6621, allocations: 155.9 kB / 494.7 MB, free: 1.512 MB / 379.1 MB Notification: Performance of sorting global known variables: time 0.003358/0.6655, allocations: 1.255 MB / 496 MB, free: 260 kB / 379.1 MB Notification: Performance of sort global known variables: time 1.202e-06/0.6655, allocations: 0 / 496 MB, free: 260 kB / 379.1 MB Notification: Performance of remove unused functions: time 0.001084/0.6666, allocations: 151.9 kB / 496.1 MB, free: 108 kB / 379.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.0004662/0.6671, allocations: 201.5 kB / 496.3 MB, free: 15.89 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.003463/0.6706, allocations: 1.866 MB / 498.2 MB, free: 13.93 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/0.6707, allocations: 0 / 498.2 MB, free: 13.93 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002187/0.6729, allocations: 1.374 MB / 499.5 MB, free: 12.46 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002194/0.6751, allocations: 292.2 kB / 499.8 MB, free: 12.18 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006889/0.6821, allocations: 2.547 MB / 0.4906 GB, free: 9.582 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001772/0.6839, allocations: 1.217 MB / 0.4918 GB, free: 8.34 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.643e-05/0.684, allocations: 31.44 kB / 0.4918 GB, free: 8.309 MB / 395.1 MB Notification: Performance of SimCode: time 9.72e-07/0.684, allocations: 0 / 0.4918 GB, free: 8.309 MB / 395.1 MB Notification: Performance of Templates: time 0.2795/0.9636, allocations: 11.35 MB / 0.5029 GB, free: 117.5 MB / 395.1 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