Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.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.FlipFlop,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|FF.RS1.TD1.x|FF.RS2.TD1.x",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.FlipFlop") translateModel(Modelica.Electrical.Digital.Examples.FlipFlop,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|FF.RS1.TD1.x|FF.RS2.TD1.x",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.FlipFlop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009308/0.0009308, allocations: 200.1 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.286/1.286, allocations: 226.5 MB / 245.4 MB, free: 8.199 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007267/0.0007267, allocations: 103.9 kB / 297.4 MB, free: 6.914 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001997/0.0001997, allocations: 4 kB / 357.4 MB, free: 10.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1931/0.1933, allocations: 51.29 MB / 408.7 MB, free: 27.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09629/0.2896, allocations: 84.22 MB / 492.9 MB, free: 7.414 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001979/0.2899, allocations: 73.67 kB / 492.9 MB, free: 7.344 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2595/0.5494, allocations: 43.17 MB / 0.5235 GB, free: 89.1 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.5494, allocations: 0 / 0.5235 GB, free: 89.1 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.105e-05/0.5494, allocations: 11.62 kB / 0.5236 GB, free: 89.09 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.00114/0.5506, allocations: 0.7294 MB / 0.5243 GB, free: 88.35 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.5506, allocations: 8.031 kB / 0.5243 GB, free: 88.34 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001908/0.5508, allocations: 48.38 kB / 0.5243 GB, free: 88.3 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006025/0.5514, allocations: 351.3 kB / 0.5247 GB, free: 87.93 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.303e-05/0.5515, allocations: 29.02 kB / 0.5247 GB, free: 87.9 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001358/0.5517, allocations: 36.38 kB / 0.5247 GB, free: 87.86 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00123/0.5529, allocations: 494.3 kB / 0.5252 GB, free: 87.38 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.606e-05/0.5529, allocations: 192 / 0.5252 GB, free: 87.38 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000102/0.553, allocations: 23.94 kB / 0.5252 GB, free: 87.36 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.173e-05/0.5531, allocations: 8 kB / 0.5252 GB, free: 87.35 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001174/0.5543, allocations: 390.4 kB / 0.5256 GB, free: 86.96 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002134/0.5564, allocations: 1.082 MB / 0.5266 GB, free: 85.86 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001345/0.5578, allocations: 455.5 kB / 0.5271 GB, free: 85.41 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004287/0.5582, allocations: 177.2 kB / 0.5273 GB, free: 85.24 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.45e-05/0.5583, allocations: 4.281 kB / 0.5273 GB, free: 85.23 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006521/0.559, allocations: 347.2 kB / 0.5276 GB, free: 84.88 MB / 378.7 MB Notification: Performance of pre-optimization done (n=35): time 3.026e-06/0.559, allocations: 3.938 kB / 0.5276 GB, free: 84.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.001935/0.5609, allocations: 0.7206 MB / 0.5283 GB, free: 84.14 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.87e-05/0.561, allocations: 122.2 kB / 0.5284 GB, free: 84 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003752/0.5614, allocations: 294.5 kB / 0.5287 GB, free: 83.71 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.685e-05/0.5615, allocations: 41.7 kB / 0.5287 GB, free: 83.66 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001071/0.5616, allocations: 172.5 kB / 0.5289 GB, free: 83.5 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001368/0.5618, allocations: 70.98 kB / 0.529 GB, free: 83.43 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.581e-05/0.5619, allocations: 12 kB / 0.529 GB, free: 83.42 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.249e-05/0.562, allocations: 350.7 kB / 0.5293 GB, free: 83.07 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005389/0.5625, allocations: 180.6 kB / 0.5295 GB, free: 82.9 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005836/0.5631, allocations: 232.5 kB / 0.5297 GB, free: 82.65 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001218/0.5643, allocations: 0.5142 MB / 0.5302 GB, free: 82.11 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/0.5644, allocations: 3.938 kB / 0.5302 GB, free: 82.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001653/0.566, allocations: 0.6445 MB / 0.5308 GB, free: 81.46 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.469e-05/0.5661, allocations: 63.39 kB / 0.5309 GB, free: 81.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.5661, allocations: 0 / 0.5309 GB, free: 81.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.5662, allocations: 4 kB / 0.5309 GB, free: 81.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002107/0.5664, allocations: 59.81 kB / 0.531 GB, free: 81.33 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.163e-05/0.5664, allocations: 8.031 kB / 0.531 GB, free: 81.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005054/0.5669, allocations: 55.72 kB / 0.531 GB, free: 81.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003594/0.5673, allocations: 275.5 kB / 0.5313 GB, free: 81 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 45 ($whenCondition1,FF.RS2.Nor2.x[2],FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.auxiliary_n,$PRE.FF.RS2.TD1.x,FF.RS2.TD1.x_delayed,FF.And2.y,$PRE.FF.And2.auxiliary_n,FF.RS1.Nor2.x[2],FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.auxiliary_n,$PRE.FF.RS1.TD1.x,FF.RS1.TD1.x_delayed,FF.And4.y,$PRE.FF.And4.auxiliary_n,FF.RS2.Nor1.auxiliary[2],$PRE.FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor1.auxiliary_n,$PRE.FF.RS2.Nor2.auxiliary_n,FF.RS2.TD1.x,FF.And1.y,$PRE.FF.And1.auxiliary_n,FF.And3.x[1],FF.And3.x[2],FF.And3.auxiliary_n,FF.And4.auxiliary_n,$PRE.FF.Not1.auxiliary,FF.RS1.Nor1.auxiliary[2],$PRE.FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor1.auxiliary_n,$PRE.FF.RS1.Nor2.auxiliary_n,FF.RS1.TD1.x,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.y,$PRE.FF.And3.auxiliary_n,FF.Not1.auxiliary,CLK.y,$PRE.CLK.t_i,CLK.t_i,J.y,K.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 2 * 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.0004246/0.5677, allocations: 293 kB / 0.5316 GB, free: 80.7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001174/0.5679, allocations: 31.62 kB / 0.5316 GB, free: 80.67 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.807e-05/0.568, allocations: 34.95 kB / 0.5316 GB, free: 80.63 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.568, allocations: 4 kB / 0.5316 GB, free: 80.63 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.331e-06/0.568, allocations: 0 / 0.5316 GB, free: 80.63 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.568, allocations: 3.984 kB / 0.5316 GB, free: 80.62 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007334/0.5688, allocations: 472 kB / 0.5321 GB, free: 80.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.606e-06/0.5688, allocations: 0 / 0.5321 GB, free: 80.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001584/0.569, allocations: 51.81 kB / 0.5321 GB, free: 80.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.01e-06/0.569, allocations: 0 / 0.5321 GB, free: 80.07 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001043/0.5691, allocations: 51.97 kB / 0.5322 GB, free: 80.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.088e-06/0.5691, allocations: 0 / 0.5322 GB, free: 80.02 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.5691, allocations: 0 / 0.5322 GB, free: 80.02 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001535/0.5707, allocations: 0.6014 MB / 0.5328 GB, free: 79.39 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003455/0.571, allocations: 196.7 kB / 0.533 GB, free: 79.18 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000149/0.5712, allocations: 12 kB / 0.533 GB, free: 79.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003921/0.5716, allocations: 39.88 kB / 0.533 GB, free: 79.13 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002789/0.5719, allocations: 87.77 kB / 0.5331 GB, free: 79.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003493/0.5723, allocations: 283.7 kB / 0.5334 GB, free: 78.77 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002508/0.5726, allocations: 201.9 kB / 0.5336 GB, free: 78.57 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.5726, allocations: 0 / 0.5336 GB, free: 78.57 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006403/0.5732, allocations: 84 kB / 0.5336 GB, free: 78.49 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: 33 ($whenCondition1,FF.RS1.Nor1.auxiliary[2],FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor2.x[2],FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.auxiliary_n,FF.RS1.TD1.x,FF.RS1.TD1.x_delayed,FF.RS2.Nor1.auxiliary[2],FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor2.x[2],FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.auxiliary_n,FF.RS2.TD1.x,FF.RS2.TD1.x_delayed,FF.And1.y,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.y,FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.x[1],FF.And3.x[2],FF.And3.y,FF.And3.auxiliary_n,FF.And4.y,FF.And4.auxiliary_n,FF.Not1.auxiliary,CLK.y,CLK.t_i,J.y,K.y) * Number of discrete states: 13 (K.y,J.y,FF.Not1.auxiliary,FF.And4.auxiliary_n,FF.And3.auxiliary_n,FF.And2.auxiliary_n,FF.And1.auxiliary_n,FF.RS2.TD1.x,FF.RS2.Nor2.auxiliary_n,FF.RS2.Nor1.auxiliary_n,FF.RS1.TD1.x,FF.RS1.Nor2.auxiliary_n,FF.RS1.Nor1.auxiliary_n) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 1 * 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.000224/0.5735, allocations: 149.3 kB / 0.5338 GB, free: 78.34 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001421/0.5749, allocations: 0.5531 MB / 0.5343 GB, free: 77.77 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.5749, allocations: 3.859 kB / 0.5343 GB, free: 77.76 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007205/0.5757, allocations: 349.9 kB / 0.5347 GB, free: 77.41 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001781/0.5775, allocations: 297 kB / 0.5349 GB, free: 77.12 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001674/0.5791, allocations: 0.8227 MB / 0.5357 GB, free: 76.27 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003153/0.5795, allocations: 0.7994 MB / 0.5365 GB, free: 75.45 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001691/0.5812, allocations: 370.5 kB / 0.5369 GB, free: 75.09 MB / 378.7 MB Notification: Performance of SimCode: time 6.21e-07/0.5812, allocations: 0 / 0.5369 GB, free: 75.09 MB / 378.7 MB Notification: Performance of Templates: time 0.0142/0.5954, allocations: 8.2 MB / 0.5449 GB, free: 66.57 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.FlipFlop --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/FlipFlop/FlipFlop.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches