Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_Modelica.Electrical.Digital.Examples.FlipFlop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001688/0.001688, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.2/1.2, allocations: 227.2 MB / 245 MB, free: 7.594 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001083/0.001083, allocations: 102.8 kB / 297.3 MB, free: 6.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000234/0.000234, allocations: 8 kB / 357.9 MB, free: 9.531 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2039/0.2041, allocations: 51.48 MB / 409.4 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09441/0.2986, allocations: 84.27 MB / 493.7 MB, free: 6.34 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002095/0.2988, allocations: 75.97 kB / 493.8 MB, free: 6.266 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2275/0.5264, allocations: 43.17 MB / 0.5243 GB, free: 87.52 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.5264, allocations: 0 / 0.5243 GB, free: 87.52 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.921e-05/0.5265, allocations: 11.62 kB / 0.5244 GB, free: 87.51 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.0008865/0.5274, allocations: 0.7347 MB / 0.5251 GB, free: 86.75 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.006e-05/0.5274, allocations: 11.97 kB / 0.5251 GB, free: 86.74 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001398/0.5275, allocations: 47.44 kB / 0.5251 GB, free: 86.7 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005078/0.5281, allocations: 346 kB / 0.5255 GB, free: 86.33 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.069e-05/0.5281, allocations: 35.56 kB / 0.5255 GB, free: 86.3 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.895e-05/0.5282, allocations: 32 kB / 0.5255 GB, free: 86.27 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007327/0.5289, allocations: 489.8 kB / 0.526 GB, free: 85.79 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.5289, allocations: 4 kB / 0.526 GB, free: 85.79 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.895e-05/0.529, allocations: 16 kB / 0.526 GB, free: 85.77 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.529, allocations: 8 kB / 0.526 GB, free: 85.76 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006294/0.5297, allocations: 394.2 kB / 0.5264 GB, free: 85.38 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001517/0.5312, allocations: 1.082 MB / 0.5274 GB, free: 84.27 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008903/0.5321, allocations: 459.5 kB / 0.5279 GB, free: 83.82 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.153e-05/0.5322, allocations: 4.281 kB / 0.5279 GB, free: 83.82 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000429/0.5326, allocations: 340.1 kB / 0.5282 GB, free: 83.47 MB / 378.7 MB Notification: Performance of pre-optimization done (n=35): time 1.974e-06/0.5326, allocations: 0 / 0.5282 GB, free: 83.47 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.001106/0.5337, allocations: 0.7303 MB / 0.5289 GB, free: 82.73 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.29e-05/0.5338, allocations: 110.8 kB / 0.529 GB, free: 82.59 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000189/0.534, allocations: 273.6 kB / 0.5293 GB, free: 82.32 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.69e-05/0.534, allocations: 45.64 kB / 0.5293 GB, free: 82.27 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.324e-05/0.5341, allocations: 176.5 kB / 0.5295 GB, free: 82.1 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.375e-05/0.5342, allocations: 81.95 kB / 0.5296 GB, free: 82.03 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.631e-05/0.5342, allocations: 8 kB / 0.5296 GB, free: 82.02 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.005e-05/0.5343, allocations: 342.8 kB / 0.5299 GB, free: 81.68 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002979/0.5346, allocations: 180.8 kB / 0.5301 GB, free: 81.5 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003096/0.5349, allocations: 228.5 kB / 0.5303 GB, free: 81.26 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000336/0.5353, allocations: 254.5 kB / 0.5306 GB, free: 81 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.5353, allocations: 0 / 0.5306 GB, free: 81 MB / 378.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008789/0.5361, allocations: 0.6445 MB / 0.5312 GB, free: 80.35 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.063e-05/0.5362, allocations: 57.91 kB / 0.5312 GB, free: 80.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.5362, allocations: 4 kB / 0.5312 GB, free: 80.28 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.5362, allocations: 7.938 kB / 0.5312 GB, free: 80.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001155/0.5363, allocations: 59.8 kB / 0.5313 GB, free: 80.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.615e-06/0.5364, allocations: 11.88 kB / 0.5313 GB, free: 80.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000262/0.5366, allocations: 43.88 kB / 0.5314 GB, free: 80.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001802/0.5368, allocations: 283.5 kB / 0.5316 GB, free: 79.89 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.0002436/0.5371, allocations: 289 kB / 0.5319 GB, free: 79.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.498e-05/0.5371, allocations: 35.47 kB / 0.5319 GB, free: 79.56 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.58e-05/0.5372, allocations: 38.95 kB / 0.532 GB, free: 79.52 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.798e-06/0.5372, allocations: 4 kB / 0.532 GB, free: 79.52 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.5372, allocations: 0 / 0.532 GB, free: 79.52 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.5372, allocations: 0 / 0.532 GB, free: 79.52 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003965/0.5376, allocations: 472 kB / 0.5324 GB, free: 79.01 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.5376, allocations: 0 / 0.5324 GB, free: 79.01 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.614e-05/0.5377, allocations: 47.97 kB / 0.5325 GB, free: 78.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.5377, allocations: 3.75 kB / 0.5325 GB, free: 78.96 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.899e-05/0.5378, allocations: 47.97 kB / 0.5325 GB, free: 78.92 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.5378, allocations: 4 kB / 0.5325 GB, free: 78.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.5378, allocations: 4 kB / 0.5325 GB, free: 78.91 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008034/0.5386, allocations: 0.5907 MB / 0.5331 GB, free: 78.29 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002807/0.5389, allocations: 204.6 kB / 0.5333 GB, free: 78.07 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.864e-05/0.539, allocations: 15.94 kB / 0.5333 GB, free: 78.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002078/0.5392, allocations: 43.72 kB / 0.5334 GB, free: 78.02 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001645/0.5394, allocations: 91.77 kB / 0.5334 GB, free: 77.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001809/0.5396, allocations: 283.1 kB / 0.5337 GB, free: 77.65 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001336/0.5397, allocations: 198 kB / 0.5339 GB, free: 77.46 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5397, allocations: 0 / 0.5339 GB, free: 77.46 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003668/0.5401, allocations: 88 kB / 0.534 GB, free: 77.37 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.0001501/0.5403, allocations: 133.3 kB / 0.5341 GB, free: 77.24 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000745/0.541, allocations: 0.5532 MB / 0.5347 GB, free: 76.67 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.541, allocations: 0 / 0.5347 GB, free: 76.67 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000378/0.5414, allocations: 358.2 kB / 0.535 GB, free: 76.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008762/0.5423, allocations: 282.6 kB / 0.5353 GB, free: 76.03 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009564/0.5433, allocations: 0.7779 MB / 0.536 GB, free: 75.23 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002048/0.5435, allocations: 0.8153 MB / 0.5368 GB, free: 74.39 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001134/0.5446, allocations: 0.747 MB / 0.5376 GB, free: 73.64 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006219/0.5453, allocations: 258.8 kB / 0.5378 GB, free: 73.38 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.5453, allocations: 0 / 0.5378 GB, free: 73.38 MB / 378.7 MB Notification: Performance of Templates: time 0.011/0.5563, allocations: 9.959 MB / 0.5475 GB, free: 63.3 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.makefile (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/FlipFlop/FlipFlop.csv","../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches