Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH.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.DFFREGSRH,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGSRH.dataOut.1.|dFFREGSRH.dataOut.2.",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH") translateModel(Modelica.Electrical.Digital.Examples.DFFREGSRH,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGSRH.dataOut.1.|dFFREGSRH.dataOut.2.",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001472/0.001472, allocations: 202 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.297/1.297, allocations: 226.5 MB / 245.4 MB, free: 8.246 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007473/0.0007473, allocations: 103.8 kB / 297.4 MB, free: 6.898 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002123/0.0002123, allocations: 12 kB / 357.4 MB, free: 10.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1834/0.1836, allocations: 51.28 MB / 408.7 MB, free: 27.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08538/0.269, allocations: 84.1 MB / 492.8 MB, free: 7.512 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001922/0.2693, allocations: 73.75 kB / 492.8 MB, free: 7.441 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1888/0.4581, allocations: 31.47 MB / 0.512 GB, free: 93.2 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.4582, allocations: 2.656 kB / 0.512 GB, free: 93.2 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.441e-05/0.4582, allocations: 19.25 kB / 0.512 GB, free: 93.2 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.001161/0.4594, allocations: 1.482 MB / 0.5135 GB, free: 92.09 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/0.4594, allocations: 10.97 kB / 0.5135 GB, free: 92.09 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001429/0.4595, allocations: 136.3 kB / 0.5136 GB, free: 92.03 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005088/0.4601, allocations: 0.569 MB / 0.5142 GB, free: 91.65 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.728e-05/0.4601, allocations: 28.34 kB / 0.5142 GB, free: 91.65 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.957e-05/0.4602, allocations: 24.91 kB / 0.5142 GB, free: 91.65 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008189/0.461, allocations: 0.6247 MB / 0.5148 GB, free: 91.61 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.939e-06/0.461, allocations: 192 / 0.5148 GB, free: 91.61 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.201e-05/0.4611, allocations: 18.41 kB / 0.5148 GB, free: 91.61 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.4611, allocations: 3.719 kB / 0.5149 GB, free: 91.61 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005688/0.4617, allocations: 463.4 kB / 0.5153 GB, free: 91.6 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001286/0.463, allocations: 1.086 MB / 0.5164 GB, free: 91.18 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006748/0.4637, allocations: 0.6856 MB / 0.517 GB, free: 90.86 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006182/0.4643, allocations: 0.6782 MB / 0.5177 GB, free: 90.55 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.258e-05/0.4643, allocations: 3.469 kB / 0.5177 GB, free: 90.55 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007354/0.4651, allocations: 0.7632 MB / 0.5184 GB, free: 90.22 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 2.024e-06/0.4651, allocations: 3.531 kB / 0.5184 GB, free: 90.22 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.002158/0.4672, allocations: 1.876 MB / 0.5203 GB, free: 89.4 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001116/0.4674, allocations: 333.1 kB / 0.5206 GB, free: 89.05 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001938/0.4693, allocations: 1.826 MB / 0.5224 GB, free: 87.95 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.186e-05/0.4694, allocations: 44.44 kB / 0.5224 GB, free: 87.91 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001653/0.4696, allocations: 242.2 kB / 0.5226 GB, free: 87.7 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.983e-05/0.4697, allocations: 83.03 kB / 0.5227 GB, free: 87.64 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.443e-05/0.4697, allocations: 18.61 kB / 0.5227 GB, free: 87.63 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.1e-05/0.4698, allocations: 380.9 kB / 0.5231 GB, free: 87.27 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005156/0.4704, allocations: 439.2 kB / 0.5235 GB, free: 87.07 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005125/0.4709, allocations: 487.1 kB / 0.524 GB, free: 86.83 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008774/0.4718, allocations: 1.163 MB / 0.5251 GB, free: 85.63 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.4718, allocations: 0 / 0.5251 GB, free: 85.63 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001394/0.4732, allocations: 1.365 MB / 0.5265 GB, free: 84.21 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001264/0.4733, allocations: 289.5 kB / 0.5267 GB, free: 83.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.4733, allocations: 0 / 0.5267 GB, free: 83.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.4733, allocations: 3.938 kB / 0.5267 GB, free: 83.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.618e-05/0.4734, allocations: 7.75 kB / 0.5267 GB, free: 83.87 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.4734, allocations: 7.984 kB / 0.5268 GB, free: 83.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003358/0.4737, allocations: 51.88 kB / 0.5268 GB, free: 83.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001369/0.4739, allocations: 159.6 kB / 0.527 GB, free: 83.66 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.dFFREGSRH.delay.inertialDelaySensitive[2].y,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.set,$PRE.dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.reset,$PRE.dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.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.000873/0.4748, allocations: 0.9924 MB / 0.5279 GB, free: 82.62 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001136/0.4749, allocations: 130.5 kB / 0.528 GB, free: 82.49 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002913/0.4752, allocations: 251.5 kB / 0.5283 GB, free: 82.24 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.4752, allocations: 0 / 0.5283 GB, free: 82.24 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.4752, allocations: 4 kB / 0.5283 GB, free: 82.23 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.4752, allocations: 4 kB / 0.5283 GB, free: 82.23 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002355/0.4776, allocations: 2.417 MB / 0.5307 GB, free: 79.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.4776, allocations: 7.312 kB / 0.5307 GB, free: 79.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.05e-05/0.4776, allocations: 0 / 0.5307 GB, free: 79.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.4776, allocations: 3.984 kB / 0.5307 GB, free: 79.7 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.649e-05/0.4777, allocations: 39.98 kB / 0.5307 GB, free: 79.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.846e-06/0.4777, allocations: 8 kB / 0.5307 GB, free: 79.66 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.4777, allocations: 3.984 kB / 0.5307 GB, free: 79.65 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001589/0.4793, allocations: 1.641 MB / 0.5323 GB, free: 77.94 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007747/0.4801, allocations: 0.6746 MB / 0.533 GB, free: 77.25 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001559/0.4803, allocations: 63.97 kB / 0.533 GB, free: 77.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002967/0.4806, allocations: 43.33 kB / 0.5331 GB, free: 77.14 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000424/0.481, allocations: 359.2 kB / 0.5334 GB, free: 76.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001351/0.4811, allocations: 159.3 kB / 0.5336 GB, free: 76.64 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001421/0.4826, allocations: 1.329 MB / 0.5349 GB, free: 75.31 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4826, allocations: 0 / 0.5349 GB, free: 75.31 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004428/0.483, allocations: 148 kB / 0.535 GB, free: 75.17 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,dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.next_assign_val[2]) * Number of discrete states: 34 (set.y,data_1.y,reset.y,data_0.y,clock.y,dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.next_assign_val[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.set,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGSRH.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.0001898/0.4832, allocations: 184.8 kB / 0.5352 GB, free: 74.98 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001543/0.4848, allocations: 1.924 MB / 0.5371 GB, free: 72.96 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.624e-06/0.4848, allocations: 0 / 0.5371 GB, free: 72.96 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009047/0.4857, allocations: 1.397 MB / 0.5384 GB, free: 71.47 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001055/0.4868, allocations: 317.7 kB / 0.5387 GB, free: 71.18 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003235/0.49, allocations: 3.193 MB / 0.5419 GB, free: 67.94 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006848/0.4907, allocations: 1.193 MB / 0.543 GB, free: 66.72 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.759e-05/0.4907, allocations: 27.44 kB / 0.543 GB, free: 66.69 MB / 378.7 MB Notification: Performance of SimCode: time 3.9e-07/0.4907, allocations: 0 / 0.543 GB, free: 66.69 MB / 378.7 MB Notification: Performance of Templates: time 0.01137/0.5021, allocations: 11.67 MB / 0.5544 GB, free: 54.99 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/DFFREGSRH/DFFREGSRH.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches