Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.DFFREG,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREG.dFFR.clock|dFFREG.dFFR.reset|dFFREG.delay.inertialDelaySensitive.1..x|dFFREG.delay.inertialDelaySensitive.1..y|dFFREG.delay.inertialDelaySensitive.2..x|dFFREG.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG") translateModel(Modelica.Electrical.Digital.Examples.DFFREG,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREG.dFFR.clock|dFFREG.dFFR.reset|dFFREG.delay.inertialDelaySensitive.1..x|dFFREG.delay.inertialDelaySensitive.1..y|dFFREG.delay.inertialDelaySensitive.2..x|dFFREG.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001579/0.001579, allocations: 200.7 kB / 18.11 MB, free: 3.715 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 226.5 MB / 245.4 MB, free: 6.453 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007805/0.0007804, allocations: 96.12 kB / 297.5 MB, free: 6.664 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000237/0.000237, allocations: 8 kB / 358.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2515/0.2517, allocations: 51.29 MB / 409.4 MB, free: 27.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1065/0.3583, allocations: 83.85 MB / 493.2 MB, free: 7.629 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002235/0.3586, allocations: 68.53 kB / 493.3 MB, free: 7.562 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2655/0.6241, allocations: 28.18 MB / 0.5093 GB, free: 93.86 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.435e-06/0.6242, allocations: 0 / 0.5093 GB, free: 93.86 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.942e-05/0.6242, allocations: 13.12 kB / 0.5093 GB, free: 93.86 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001707/0.6259, allocations: 1.132 MB / 0.5104 GB, free: 93.07 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.731e-05/0.626, allocations: 9.531 kB / 0.5104 GB, free: 93.07 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000443/0.6265, allocations: 84.19 kB / 0.5105 GB, free: 93.03 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008591/0.6273, allocations: 454.1 kB / 0.5109 GB, free: 92.72 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.924e-05/0.6274, allocations: 19.28 kB / 0.5109 GB, free: 92.72 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001307/0.6276, allocations: 26.44 kB / 0.5109 GB, free: 92.72 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001084/0.6287, allocations: 0.5092 MB / 0.5114 GB, free: 92.68 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.6287, allocations: 192 / 0.5114 GB, free: 92.68 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.831e-05/0.6288, allocations: 21.86 kB / 0.5115 GB, free: 92.68 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.6288, allocations: 2.688 kB / 0.5115 GB, free: 92.68 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007598/0.6295, allocations: 365.3 kB / 0.5118 GB, free: 92.68 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001671/0.6312, allocations: 0.864 MB / 0.5127 GB, free: 92.35 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006063/0.6319, allocations: 0.5025 MB / 0.5131 GB, free: 92.32 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005542/0.6324, allocations: 0.4992 MB / 0.5136 GB, free: 92.31 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.144e-05/0.6324, allocations: 2.656 kB / 0.5136 GB, free: 92.31 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007013/0.6331, allocations: 0.6507 MB / 0.5143 GB, free: 92.05 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 2.485e-06/0.6332, allocations: 0 / 0.5143 GB, free: 92.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.001969/0.6351, allocations: 1.546 MB / 0.5158 GB, free: 91.42 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001103/0.6353, allocations: 287.2 kB / 0.5161 GB, free: 91.12 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001478/0.6367, allocations: 1.173 MB / 0.5172 GB, free: 90.58 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.645e-05/0.6368, allocations: 44.05 kB / 0.5172 GB, free: 90.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.914e-05/0.6369, allocations: 148.2 kB / 0.5174 GB, free: 90.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001006/0.637, allocations: 73.06 kB / 0.5175 GB, free: 90.38 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.159e-05/0.6371, allocations: 11.62 kB / 0.5175 GB, free: 90.37 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.567e-05/0.6372, allocations: 341.2 kB / 0.5178 GB, free: 90.05 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004766/0.6377, allocations: 353.4 kB / 0.5181 GB, free: 89.94 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004675/0.6381, allocations: 384.1 kB / 0.5185 GB, free: 89.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008788/0.639, allocations: 0.9768 MB / 0.5194 GB, free: 89.12 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.639, allocations: 0 / 0.5194 GB, free: 89.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001288/0.6403, allocations: 1.139 MB / 0.5206 GB, free: 88.61 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001298/0.6405, allocations: 243.5 kB / 0.5208 GB, free: 88.37 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.6405, allocations: 4.062 kB / 0.5208 GB, free: 88.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.6405, allocations: 3.219 kB / 0.5208 GB, free: 88.37 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.892e-05/0.6406, allocations: 7.422 kB / 0.5208 GB, free: 88.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.6406, allocations: 6.25 kB / 0.5208 GB, free: 88.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003388/0.6409, allocations: 45.75 kB / 0.5209 GB, free: 88.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001508/0.6411, allocations: 151.6 kB / 0.521 GB, free: 88.35 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 40 ($PRE.dFFREG.delay.inertialDelaySensitive[2].y,$PRE.dFFREG.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,$PRE.dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREG.dFFR.reset,dFFREG.dFFR.reset,$PRE.dFFREG.dFFR.clock,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.next_assign_val[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 7 * 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.000724/0.6418, allocations: 0.7519 MB / 0.5217 GB, free: 87.86 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001337/0.6419, allocations: 93.61 kB / 0.5218 GB, free: 87.81 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002222/0.6422, allocations: 157.3 kB / 0.522 GB, free: 87.72 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.6422, allocations: 7.406 kB / 0.522 GB, free: 87.72 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.084e-06/0.6422, allocations: 7.406 kB / 0.522 GB, free: 87.71 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.6422, allocations: 0 / 0.522 GB, free: 87.71 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002228/0.6444, allocations: 1.979 MB / 0.5239 GB, free: 86.69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.6445, allocations: 4 kB / 0.5239 GB, free: 86.69 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.098e-05/0.6445, allocations: 0 / 0.5239 GB, free: 86.69 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.6445, allocations: 0 / 0.5239 GB, free: 86.69 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.999e-05/0.6445, allocations: 40.09 kB / 0.524 GB, free: 86.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.295e-06/0.6446, allocations: 0 / 0.524 GB, free: 86.68 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.6446, allocations: 3.75 kB / 0.524 GB, free: 86.68 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001505/0.6461, allocations: 1.403 MB / 0.5253 GB, free: 85.51 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007078/0.6468, allocations: 0.5575 MB / 0.5259 GB, free: 85.02 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001561/0.647, allocations: 66.44 kB / 0.5259 GB, free: 84.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002829/0.6473, allocations: 41.75 kB / 0.526 GB, free: 84.93 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000351/0.6476, allocations: 242.4 kB / 0.5262 GB, free: 84.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001367/0.6478, allocations: 151.2 kB / 0.5264 GB, free: 84.62 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001028/0.6488, allocations: 0.8657 MB / 0.5272 GB, free: 83.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6488, allocations: 4 kB / 0.5272 GB, free: 83.79 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004999/0.6493, allocations: 120 kB / 0.5273 GB, free: 83.68 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: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.dFFR.reset,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.next_assign_val[2]) * Number of discrete states: 32 (data_1.y,reset.y,data_0.y,clock.y,dFFREG.dFFR.dataOut[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.next_assign_val[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.nextstate[1],dFFREG.dFFR.reset_flag,dFFREG.dFFR.clock_flag,dFFREG.dFFR.clock,dFFREG.dFFR.reset,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREG.delay.inertialDelaySensitive[2].x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 7 * 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.000226/0.6495, allocations: 186.8 kB / 0.5275 GB, free: 83.48 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001497/0.651, allocations: 1.515 MB / 0.529 GB, free: 81.89 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.6511, allocations: 0 / 0.529 GB, free: 81.89 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008381/0.6519, allocations: 1.114 MB / 0.5301 GB, free: 80.69 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001195/0.6531, allocations: 296.9 kB / 0.5304 GB, free: 80.42 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003279/0.6564, allocations: 2.156 MB / 0.5325 GB, free: 78.24 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007788/0.6572, allocations: 1.027 MB / 0.5335 GB, free: 77.18 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000226/0.6574, allocations: 37.31 kB / 0.5335 GB, free: 77.15 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.322e-05/0.6575, allocations: 15.44 kB / 0.5335 GB, free: 77.14 MB / 378.7 MB Notification: Performance of SimCode: time 9.61e-07/0.6575, allocations: 3.656 kB / 0.5335 GB, free: 77.14 MB / 378.7 MB Notification: Performance of Templates: time 0.01836/0.6759, allocations: 13.64 MB / 0.5468 GB, free: 63.39 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG.makefile (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/DFFREG/DFFREG.csv","../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches