Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.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.DFFREGSRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGSRL.dataOut.1.|dFFREGSRL.dataOut.2.",fileNamePrefix="Modelica_trunk_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_trunk_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001474/0.001474, allocations: 195.5 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.259/1.259, allocations: 226.5 MB / 245.3 MB, free: 8.234 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007606/0.0007606, allocations: 91.84 kB / 297.4 MB, free: 6.887 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002502/0.0002503, allocations: 8 kB / 357.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2012/0.2015, allocations: 51.29 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08773/0.2893, allocations: 84.16 MB / 492.8 MB, free: 7.441 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001674/0.2895, allocations: 68.47 kB / 492.9 MB, free: 7.375 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2145/0.504, allocations: 33.01 MB / 0.5136 GB, free: 93.93 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.5041, allocations: 0 / 0.5136 GB, free: 93.93 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.18e-05/0.5041, allocations: 15.56 kB / 0.5136 GB, free: 93.93 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001302/0.5054, allocations: 1.486 MB / 0.515 GB, free: 92.82 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.558e-05/0.5054, allocations: 7.656 kB / 0.515 GB, free: 92.82 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001466/0.5056, allocations: 135.2 kB / 0.5152 GB, free: 92.75 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005513/0.5062, allocations: 0.5699 MB / 0.5157 GB, free: 92.38 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.417e-05/0.5062, allocations: 26.06 kB / 0.5158 GB, free: 92.37 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.082e-05/0.5063, allocations: 29.09 kB / 0.5158 GB, free: 92.37 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000831/0.5071, allocations: 0.6261 MB / 0.5164 GB, free: 92.33 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.267e-06/0.5071, allocations: 4.125 kB / 0.5164 GB, free: 92.33 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.101e-05/0.5072, allocations: 24.3 kB / 0.5164 GB, free: 92.32 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.119e-06/0.5072, allocations: 3.844 kB / 0.5164 GB, free: 92.32 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005521/0.5078, allocations: 462 kB / 0.5169 GB, free: 92.23 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001405/0.5092, allocations: 1.083 MB / 0.5179 GB, free: 91.48 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006983/0.5099, allocations: 0.6894 MB / 0.5186 GB, free: 91.09 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006251/0.5105, allocations: 0.6779 MB / 0.5193 GB, free: 90.71 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.472e-05/0.5106, allocations: 3.938 kB / 0.5193 GB, free: 90.7 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007428/0.5113, allocations: 0.7677 MB / 0.52 GB, free: 90.2 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 2.054e-06/0.5113, allocations: 0 / 0.52 GB, free: 90.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.002149/0.5135, allocations: 1.873 MB / 0.5218 GB, free: 89.21 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00012/0.5136, allocations: 336.7 kB / 0.5222 GB, free: 88.85 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002227/0.5158, allocations: 1.827 MB / 0.5239 GB, free: 87.21 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001147/0.516, allocations: 45.7 kB / 0.524 GB, free: 87.16 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000176/0.5162, allocations: 242.2 kB / 0.5242 GB, free: 86.92 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.764e-05/0.5163, allocations: 82.06 kB / 0.5243 GB, free: 86.84 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.338e-05/0.5163, allocations: 12 kB / 0.5243 GB, free: 86.83 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.612e-05/0.5164, allocations: 382.7 kB / 0.5247 GB, free: 86.45 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005175/0.5169, allocations: 443.7 kB / 0.5251 GB, free: 86.02 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005106/0.5175, allocations: 482.6 kB / 0.5256 GB, free: 85.54 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008821/0.5184, allocations: 1.156 MB / 0.5267 GB, free: 84.28 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.5184, allocations: 0 / 0.5267 GB, free: 84.28 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001408/0.5198, allocations: 1.371 MB / 0.528 GB, free: 82.86 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001298/0.5199, allocations: 289.5 kB / 0.5283 GB, free: 82.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.5199, allocations: 0 / 0.5283 GB, free: 82.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.52, allocations: 7.938 kB / 0.5283 GB, free: 82.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.656e-05/0.52, allocations: 0 / 0.5283 GB, free: 82.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.762e-06/0.52, allocations: 4 kB / 0.5283 GB, free: 82.51 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003472/0.5204, allocations: 51.12 kB / 0.5284 GB, free: 82.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001373/0.5205, allocations: 159.7 kB / 0.5285 GB, free: 82.31 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: 43 ($PRE.dFFREGSRL.delay.inertialDelaySensitive[2].y,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].y,$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,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,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 () * Number of clocked 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.001252/0.5218, allocations: 0.9903 MB / 0.5295 GB, free: 81.27 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000141/0.5219, allocations: 134.4 kB / 0.5296 GB, free: 81.13 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004232/0.5223, allocations: 249.1 kB / 0.5298 GB, free: 80.89 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.5224, allocations: 8 kB / 0.5299 GB, free: 80.88 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.5224, allocations: 0 / 0.5299 GB, free: 80.88 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.5224, allocations: 0 / 0.5299 GB, free: 80.88 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002412/0.5248, allocations: 2.428 MB / 0.5322 GB, free: 78.35 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.5248, allocations: 3.938 kB / 0.5322 GB, free: 78.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.181e-05/0.5248, allocations: 0 / 0.5322 GB, free: 78.35 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.5248, allocations: 4 kB / 0.5322 GB, free: 78.34 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.7e-05/0.5249, allocations: 47.97 kB / 0.5323 GB, free: 78.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.5249, allocations: 0 / 0.5323 GB, free: 78.3 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.5249, allocations: 0 / 0.5323 GB, free: 78.3 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001596/0.5265, allocations: 1.642 MB / 0.5339 GB, free: 76.59 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008367/0.5274, allocations: 0.6824 MB / 0.5345 GB, free: 75.89 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001552/0.5275, allocations: 63.97 kB / 0.5346 GB, free: 75.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002988/0.5279, allocations: 39.72 kB / 0.5346 GB, free: 75.79 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004414/0.5283, allocations: 359.6 kB / 0.535 GB, free: 75.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001372/0.5284, allocations: 151.9 kB / 0.5351 GB, free: 75.29 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001704/0.5302, allocations: 1.333 MB / 0.5364 GB, free: 73.95 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.5302, allocations: 0 / 0.5364 GB, free: 73.95 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004893/0.5307, allocations: 148 kB / 0.5366 GB, free: 73.81 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) * Number of clocked states: 0 () * 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.0002032/0.5309, allocations: 197 kB / 0.5368 GB, free: 73.61 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001576/0.5325, allocations: 1.911 MB / 0.5386 GB, free: 71.61 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.5325, allocations: 0 / 0.5386 GB, free: 71.61 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009415/0.5334, allocations: 1.405 MB / 0.54 GB, free: 70.11 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001149/0.5346, allocations: 310.6 kB / 0.5403 GB, free: 69.81 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003982/0.5386, allocations: 3.197 MB / 0.5434 GB, free: 66.57 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007771/0.5394, allocations: 1.193 MB / 0.5446 GB, free: 65.36 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.718e-05/0.5394, allocations: 27.44 kB / 0.5446 GB, free: 65.33 MB / 378.7 MB Notification: Performance of SimCode: time 8.71e-07/0.5394, allocations: 0 / 0.5446 GB, free: 65.33 MB / 378.7 MB Notification: Performance of Templates: time 0.01219/0.5516, allocations: 11.67 MB / 0.556 GB, free: 53.62 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/DFFREGSRL/DFFREGSRL.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches