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.001781/0.001781, allocations: 200.2 kB / 18.11 MB, free: 3.605 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.491/1.491, allocations: 226.5 MB / 245.4 MB, free: 8.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008521/0.0008519, allocations: 97.53 kB / 297.5 MB, free: 6.871 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000267/0.0002671, allocations: 8 kB / 358.1 MB, free: 10.27 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.26/0.2603, allocations: 51.29 MB / 409.4 MB, free: 27.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1075/0.3679, allocations: 84.21 MB / 493.6 MB, free: 7.297 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002641/0.3682, allocations: 70 kB / 493.6 MB, free: 7.23 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2852/0.6535, allocations: 43.17 MB / 0.5242 GB, free: 88.97 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.935e-06/0.6535, allocations: 0 / 0.5242 GB, free: 88.97 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.492e-05/0.6536, allocations: 8 kB / 0.5243 GB, free: 88.96 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.001548/0.6551, allocations: 0.7332 MB / 0.525 GB, free: 88.21 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.118e-05/0.6552, allocations: 8.031 kB / 0.525 GB, free: 88.21 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003153/0.6555, allocations: 48.38 kB / 0.525 GB, free: 88.16 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006511/0.6562, allocations: 351.8 kB / 0.5254 GB, free: 87.79 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.812e-05/0.6562, allocations: 25.03 kB / 0.5254 GB, free: 87.77 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001399/0.6564, allocations: 40.36 kB / 0.5254 GB, free: 87.73 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000952/0.6573, allocations: 491.8 kB / 0.5259 GB, free: 87.25 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.667e-05/0.6574, allocations: 4.188 kB / 0.5259 GB, free: 87.24 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.83e-05/0.6575, allocations: 19.94 kB / 0.5259 GB, free: 87.22 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.118e-05/0.6575, allocations: 8 kB / 0.5259 GB, free: 87.21 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007509/0.6582, allocations: 390.4 kB / 0.5263 GB, free: 86.83 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001739/0.66, allocations: 1.082 MB / 0.5273 GB, free: 85.73 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009152/0.6609, allocations: 459.3 kB / 0.5278 GB, free: 85.28 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000295/0.6612, allocations: 177.3 kB / 0.528 GB, free: 85.1 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.681e-05/0.6613, allocations: 288 / 0.528 GB, free: 85.1 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005331/0.6618, allocations: 339.2 kB / 0.5283 GB, free: 84.76 MB / 378.7 MB Notification: Performance of pre-optimization done (n=35): time 3.085e-06/0.6618, allocations: 4 kB / 0.5283 GB, free: 84.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.001269/0.6631, allocations: 0.7206 MB / 0.529 GB, free: 84.02 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.028e-05/0.6632, allocations: 126.6 kB / 0.5291 GB, free: 83.87 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000263/0.6635, allocations: 298.5 kB / 0.5294 GB, free: 83.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.95e-05/0.6635, allocations: 41.7 kB / 0.5294 GB, free: 83.53 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.09e-05/0.6636, allocations: 168.5 kB / 0.5296 GB, free: 83.37 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.066e-05/0.6637, allocations: 78.56 kB / 0.5297 GB, free: 83.3 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.407e-05/0.6638, allocations: 12 kB / 0.5297 GB, free: 83.29 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.507e-05/0.6639, allocations: 338.8 kB / 0.53 GB, free: 82.95 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000312/0.6642, allocations: 192.6 kB / 0.5302 GB, free: 82.76 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003157/0.6645, allocations: 224.6 kB / 0.5304 GB, free: 82.52 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006818/0.6652, allocations: 0.5199 MB / 0.5309 GB, free: 81.97 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/0.6652, allocations: 4 kB / 0.5309 GB, free: 81.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009995/0.6662, allocations: 0.643 MB / 0.5315 GB, free: 81.32 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.708e-05/0.6663, allocations: 63.34 kB / 0.5316 GB, free: 81.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.6663, allocations: 0 / 0.5316 GB, free: 81.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.881e-05/0.6663, allocations: 4 kB / 0.5316 GB, free: 81.24 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001284/0.6664, allocations: 59.81 kB / 0.5317 GB, free: 81.19 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/0.6665, allocations: 3.984 kB / 0.5317 GB, free: 81.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003174/0.6668, allocations: 55.75 kB / 0.5317 GB, free: 81.13 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002314/0.667, allocations: 275.5 kB / 0.532 GB, free: 80.87 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.0003365/0.6674, allocations: 293 kB / 0.5323 GB, free: 80.56 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.494e-05/0.6675, allocations: 31.62 kB / 0.5323 GB, free: 80.53 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.688e-05/0.6675, allocations: 34.95 kB / 0.5323 GB, free: 80.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.6675, allocations: 8 kB / 0.5323 GB, free: 80.49 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.635e-06/0.6676, allocations: 0 / 0.5323 GB, free: 80.49 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.6676, allocations: 0 / 0.5323 GB, free: 80.49 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005047/0.6681, allocations: 476 kB / 0.5328 GB, free: 79.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.6681, allocations: 4 kB / 0.5328 GB, free: 79.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.748e-05/0.6682, allocations: 51.81 kB / 0.5328 GB, free: 79.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.6682, allocations: 0 / 0.5328 GB, free: 79.93 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.166e-05/0.6683, allocations: 47.97 kB / 0.5329 GB, free: 79.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.6683, allocations: 0 / 0.5329 GB, free: 79.88 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.6683, allocations: 0 / 0.5329 GB, free: 79.88 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000882/0.6692, allocations: 0.6014 MB / 0.5335 GB, free: 79.25 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002975/0.6695, allocations: 200.6 kB / 0.5337 GB, free: 79.04 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001007/0.6696, allocations: 12 kB / 0.5337 GB, free: 79.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002264/0.6698, allocations: 43.88 kB / 0.5337 GB, free: 78.98 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002006/0.67, allocations: 87.77 kB / 0.5338 GB, free: 78.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002226/0.6703, allocations: 283.7 kB / 0.5341 GB, free: 78.62 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001615/0.6704, allocations: 198 kB / 0.5343 GB, free: 78.43 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6704, allocations: 0 / 0.5343 GB, free: 78.43 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004387/0.6709, allocations: 91.98 kB / 0.5343 GB, free: 78.34 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.0002161/0.6711, allocations: 137.3 kB / 0.5345 GB, free: 78.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008567/0.672, allocations: 0.5441 MB / 0.535 GB, free: 77.64 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.672, allocations: 4.062 kB / 0.535 GB, free: 77.63 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004359/0.6724, allocations: 362.2 kB / 0.5354 GB, free: 77.26 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001114/0.6736, allocations: 293.3 kB / 0.5356 GB, free: 76.98 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00142/0.675, allocations: 0.7742 MB / 0.5364 GB, free: 76.19 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003322/0.6753, allocations: 0.8033 MB / 0.5372 GB, free: 75.36 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001372/0.6767, allocations: 0.7509 MB / 0.5379 GB, free: 74.61 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007932/0.6775, allocations: 262.8 kB / 0.5382 GB, free: 74.35 MB / 378.7 MB Notification: Performance of SimCode: time 1.623e-06/0.6775, allocations: 4 kB / 0.5382 GB, free: 74.35 MB / 378.7 MB Notification: Performance of Templates: time 0.01547/0.693, allocations: 10.13 MB / 0.5481 GB, free: 64.1 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/jenkins1/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