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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001155/0.001155, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001259/0.00126, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.438/1.438, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001105/0.001105, allocations: 55.91 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3419/0.3431, allocations: 50.54 MB / 409.2 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003485/0.3466, allocations: 2.152 MB / 411.4 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002397/0.349, allocations: 1.154 MB / 412.5 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.781e-05/0.3492, allocations: 0 / 412.5 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002065/0.3494, allocations: 51.52 kB / 412.6 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001165/0.3495, allocations: 43.64 kB / 412.6 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005036/0.35, allocations: 175.7 kB / 412.8 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004688/0.3505, allocations: 463.6 kB / 413.3 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002739/0.3508, allocations: 148.9 kB / 413.4 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008017/0.3516, allocations: 0.8461 MB / 414.3 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003706/0.352, allocations: 259 kB / 414.5 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.375e-05/0.3521, allocations: 40 kB / 414.5 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.844e-05/0.3522, allocations: 44 kB / 414.6 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001808/0.3523, allocations: 147.5 kB / 414.7 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002379/0.3526, allocations: 214.8 kB / 414.9 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007617/0.3534, allocations: 0.9267 MB / 415.9 MB, free: 10.96 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.3534, allocations: 0 / 415.9 MB, free: 10.96 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3534, allocations: 3.938 kB / 415.9 MB, free: 10.96 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.765e-06/0.3534, allocations: 0 / 415.9 MB, free: 10.96 MB / 334.1 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.001174/0.3546, allocations: 0.8696 MB / 416.7 MB, free: 10.03 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.3546, allocations: 12.03 kB / 416.8 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001198/0.3547, allocations: 44.47 kB / 416.8 MB, free: 9.977 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004562/0.3552, allocations: 355.3 kB / 417.1 MB, free: 9.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.298e-05/0.3553, allocations: 28.97 kB / 417.2 MB, free: 9.562 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.612e-05/0.3554, allocations: 32.38 kB / 417.2 MB, free: 9.531 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008494/0.3562, allocations: 498 kB / 417.7 MB, free: 9.039 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.3562, allocations: 0 / 417.7 MB, free: 9.039 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.842e-05/0.3563, allocations: 20 kB / 417.7 MB, free: 9.02 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.117e-06/0.3563, allocations: 8 kB / 417.7 MB, free: 9.012 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007321/0.3571, allocations: 374.4 kB / 418.1 MB, free: 8.648 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001819/0.3589, allocations: 1.116 MB / 419.2 MB, free: 7.477 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001047/0.3599, allocations: 434.9 kB / 419.6 MB, free: 7.047 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003468/0.3603, allocations: 181.3 kB / 419.8 MB, free: 6.867 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.549e-05/0.3604, allocations: 4.281 kB / 419.8 MB, free: 6.863 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006183/0.361, allocations: 339.3 kB / 420.1 MB, free: 6.52 MB / 334.1 MB Notification: Performance of pre-optimization done (n=35): time 1.984e-06/0.361, allocations: 0 / 420.1 MB, free: 6.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.001433/0.3625, allocations: 0.7343 MB / 420.9 MB, free: 5.766 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.622e-05/0.3626, allocations: 110.8 kB / 421 MB, free: 5.633 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003229/0.3629, allocations: 306.4 kB / 421.3 MB, free: 5.324 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.649e-05/0.363, allocations: 37.7 kB / 421.3 MB, free: 5.281 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001633/0.3631, allocations: 180.7 kB / 421.5 MB, free: 5.102 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001048/0.3632, allocations: 86.98 kB / 421.6 MB, free: 5.016 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002636/0.3635, allocations: 182.1 kB / 421.8 MB, free: 4.832 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.3636, allocations: 342.8 kB / 422.1 MB, free: 4.488 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003534/0.364, allocations: 180.8 kB / 422.3 MB, free: 4.312 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003829/0.3644, allocations: 236.5 kB / 422.5 MB, free: 4.066 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008015/0.3652, allocations: 0.5206 MB / 423 MB, free: 3.508 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.165e-06/0.3652, allocations: 0 / 423 MB, free: 3.508 MB / 334.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001077/0.3663, allocations: 0.6449 MB / 423.7 MB, free: 2.844 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.541e-05/0.3664, allocations: 55.41 kB / 423.7 MB, free: 2.777 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.3664, allocations: 4 kB / 423.7 MB, free: 2.773 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.832e-05/0.3664, allocations: 8.031 kB / 423.7 MB, free: 2.766 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001449/0.3666, allocations: 63.83 kB / 423.8 MB, free: 2.703 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.119e-05/0.3666, allocations: 8.141 kB / 423.8 MB, free: 2.695 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001835/0.3668, allocations: 27.84 kB / 423.8 MB, free: 2.668 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000261/0.367, allocations: 283.7 kB / 424.1 MB, free: 2.391 MB / 334.1 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,$PRE.FF.And2.auxiliary_n,FF.RS2.TD1.x_delayed,$PRE.FF.RS2.TD1.x,FF.RS2.Nor2.auxiliary_n,FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.x[2],FF.RS2.Nor2.x[1],$PRE.FF.And4.auxiliary_n,FF.RS1.TD1.x_delayed,$PRE.FF.RS1.TD1.x,FF.RS1.Nor2.auxiliary_n,FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.x[2],FF.RS1.Nor2.x[1],$PRE.FF.Not1.auxiliary,FF.And4.auxiliary_n,FF.And4.x[1],FF.And3.auxiliary_n,FF.And3.x[2],$PRE.FF.And1.auxiliary_n,FF.And1.y,FF.RS2.TD1.x,$PRE.FF.RS2.Nor2.auxiliary_n,FF.RS2.Nor1.auxiliary_n,$PRE.FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor1.auxiliary[2],K.y,J.y,CLK.t_i,$PRE.CLK.t_i,FF.Not1.auxiliary,$PRE.FF.And3.auxiliary_n,FF.And3.y,FF.And2.auxiliary_n,FF.And2.auxiliary[2],FF.And2.x[1],FF.And1.auxiliary_n,FF.And1.auxiliary[2],FF.And1.x[1],FF.RS1.TD1.x,$PRE.FF.RS1.Nor2.auxiliary_n,FF.RS1.Nor1.auxiliary_n,$PRE.FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor1.auxiliary[2]) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003798/0.3674, allocations: 289.1 kB / 424.4 MB, free: 2.086 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.582e-05/0.3675, allocations: 39.61 kB / 424.4 MB, free: 2.047 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.446e-05/0.3676, allocations: 30.97 kB / 424.5 MB, free: 2.012 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.3676, allocations: 4 kB / 424.5 MB, free: 2.008 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.246e-06/0.3676, allocations: 7.922 kB / 424.5 MB, free: 2 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.3676, allocations: 0 / 424.5 MB, free: 2 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005198/0.3681, allocations: 485.2 kB / 424.9 MB, free: 1.477 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.3682, allocations: 3.938 kB / 424.9 MB, free: 1.473 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.697e-05/0.3683, allocations: 51.91 kB / 425 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.509e-06/0.3683, allocations: 8 kB / 425 MB, free: 1.414 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.347e-05/0.3684, allocations: 43.97 kB / 425 MB, free: 1.371 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.377e-06/0.3684, allocations: 4 kB / 425.1 MB, free: 1.367 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.3684, allocations: 0 / 425.1 MB, free: 1.367 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009946/0.3694, allocations: 0.6061 MB / 425.7 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002513/0.3696, allocations: 196.6 kB / 425.8 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.514e-05/0.3697, allocations: 16 kB / 425.9 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001342/0.3699, allocations: 19.98 kB / 425.9 MB, free: 496 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002321/0.3701, allocations: 87.91 kB / 426 MB, free: 408 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002439/0.3704, allocations: 287.7 kB / 426.3 MB, free: 120 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002651/0.3706, allocations: 205.9 kB / 426.5 MB, free: 15.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3706, allocations: 0 / 426.5 MB, free: 15.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003999/0.371, allocations: 95.84 kB / 426.5 MB, free: 15.82 MB / 350.1 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[1],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[1],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.x[1],FF.And1.y,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.x[2],FF.And3.y,FF.And3.auxiliary_n,FF.And4.x[1],FF.And4.auxiliary_n,FF.Not1.auxiliary,CLK.t_i,J.y,K.y) * Number of discrete states: 13 (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,K.y,J.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00023/0.3713, allocations: 141.8 kB / 426.7 MB, free: 15.67 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009631/0.3723, allocations: 0.5571 MB / 427.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.3723, allocations: 0 / 427.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004874/0.3728, allocations: 358.6 kB / 427.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001131/0.3739, allocations: 337.1 kB / 427.9 MB, free: 14.42 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001286/0.3752, allocations: 0.7126 MB / 428.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004289/0.3756, allocations: 0.8072 MB / 429.4 MB, free: 12.84 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001437/0.3771, allocations: 0.751 MB / 430.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007204/0.3778, allocations: 262.8 kB / 430.4 MB, free: 11.83 MB / 350.1 MB Notification: Performance of SimCode: time 1.613e-06/0.3778, allocations: 0 / 430.4 MB, free: 11.83 MB / 350.1 MB Notification: Performance of Templates: time 0.01687/0.3947, allocations: 10.9 MB / 441.4 MB, free: 0.7656 MB / 350.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches