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.001079/0.001079, allocations: 118.1 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001223/0.001223, allocations: 197.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.416/1.416, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001146/0.001146, allocations: 63.89 kB / 358.7 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2971/0.2983, allocations: 50.54 MB / 409.2 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.00388/0.3022, allocations: 2.148 MB / 411.4 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002457/0.3047, allocations: 1.154 MB / 412.5 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000134/0.3048, allocations: 7.938 kB / 412.5 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001876/0.3051, allocations: 43.58 kB / 412.6 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001229/0.3052, allocations: 47.58 kB / 412.6 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004631/0.3057, allocations: 159.8 kB / 412.8 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004828/0.3061, allocations: 467.6 kB / 413.3 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002986/0.3065, allocations: 160.4 kB / 413.4 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007666/0.3072, allocations: 0.846 MB / 414.3 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002988/0.3075, allocations: 247 kB / 414.5 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000108/0.3077, allocations: 44 kB / 414.5 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.903e-05/0.3078, allocations: 44 kB / 414.6 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001822/0.3079, allocations: 151.5 kB / 414.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002204/0.3082, allocations: 222.9 kB / 414.9 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008162/0.309, allocations: 0.9263 MB / 415.9 MB, free: 10.91 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.309, allocations: 0 / 415.9 MB, free: 10.91 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.158e-06/0.309, allocations: 0 / 415.9 MB, free: 10.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.997e-06/0.309, allocations: 3.938 kB / 415.9 MB, free: 10.9 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.001159/0.3102, allocations: 0.8721 MB / 416.7 MB, free: 9.969 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.405e-05/0.3102, allocations: 8.031 kB / 416.8 MB, free: 9.961 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001114/0.3104, allocations: 48.66 kB / 416.8 MB, free: 9.914 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004423/0.3108, allocations: 363.5 kB / 417.2 MB, free: 9.52 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.899e-05/0.3109, allocations: 25.03 kB / 417.2 MB, free: 9.496 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.364e-05/0.3109, allocations: 36.38 kB / 417.2 MB, free: 9.461 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008153/0.3118, allocations: 494 kB / 417.7 MB, free: 8.973 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.3118, allocations: 0 / 417.7 MB, free: 8.973 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.602e-05/0.3118, allocations: 16 kB / 417.7 MB, free: 8.957 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/0.3119, allocations: 8 kB / 417.7 MB, free: 8.949 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007217/0.3126, allocations: 374.4 kB / 418.1 MB, free: 8.586 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001676/0.3143, allocations: 1.113 MB / 419.2 MB, free: 7.418 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001059/0.3153, allocations: 447.4 kB / 419.6 MB, free: 6.973 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003332/0.3157, allocations: 177.3 kB / 419.8 MB, free: 6.797 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.161e-05/0.3158, allocations: 16.25 kB / 419.8 MB, free: 6.781 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006018/0.3164, allocations: 336.2 kB / 420.2 MB, free: 6.441 MB / 334.1 MB Notification: Performance of pre-optimization done (n=35): time 1.803e-06/0.3164, allocations: 0 / 420.2 MB, free: 6.441 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.001501/0.3179, allocations: 0.7345 MB / 420.9 MB, free: 5.688 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.466e-05/0.318, allocations: 114.8 kB / 421 MB, free: 5.551 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003678/0.3184, allocations: 306.5 kB / 421.3 MB, free: 5.242 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.657e-05/0.3184, allocations: 41.7 kB / 421.3 MB, free: 5.195 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000115/0.3185, allocations: 180.9 kB / 421.5 MB, free: 5.016 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001099/0.3187, allocations: 87.34 kB / 421.6 MB, free: 4.93 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002481/0.3189, allocations: 182 kB / 421.8 MB, free: 4.746 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.319, allocations: 342.8 kB / 422.1 MB, free: 4.402 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003524/0.3194, allocations: 184.8 kB / 422.3 MB, free: 4.223 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003783/0.3198, allocations: 236.5 kB / 422.5 MB, free: 3.977 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008698/0.3207, allocations: 0.5245 MB / 423.1 MB, free: 3.414 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.3207, allocations: 4 kB / 423.1 MB, free: 3.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001233/0.3219, allocations: 0.6438 MB / 423.7 MB, free: 2.75 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.254e-05/0.322, allocations: 63.41 kB / 423.8 MB, free: 2.676 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.322, allocations: 0 / 423.8 MB, free: 2.676 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.273e-05/0.3221, allocations: 4 kB / 423.8 MB, free: 2.672 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001544/0.3222, allocations: 55.91 kB / 423.8 MB, free: 2.617 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.007e-05/0.3222, allocations: 3.984 kB / 423.8 MB, free: 2.613 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002045/0.3224, allocations: 27.98 kB / 423.9 MB, free: 2.586 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002858/0.3227, allocations: 287.7 kB / 424.1 MB, free: 2.305 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.0004082/0.3232, allocations: 289 kB / 424.4 MB, free: 2 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.023e-05/0.3232, allocations: 31.81 kB / 424.4 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.38e-05/0.3233, allocations: 38.95 kB / 424.5 MB, free: 1.926 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.754e-06/0.3233, allocations: 8 kB / 424.5 MB, free: 1.918 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.508e-06/0.3234, allocations: 0 / 424.5 MB, free: 1.918 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/0.3234, allocations: 7.922 kB / 424.5 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005608/0.3239, allocations: 485.2 kB / 425 MB, free: 1.387 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.3239, allocations: 0 / 425 MB, free: 1.387 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001587/0.3241, allocations: 51.91 kB / 425 MB, free: 1.336 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.3241, allocations: 0 / 425 MB, free: 1.336 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.481e-05/0.3242, allocations: 47.97 kB / 425.1 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.3242, allocations: 0 / 425.1 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.3242, allocations: 0 / 425.1 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001054/0.3253, allocations: 0.6103 MB / 425.7 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002316/0.3255, allocations: 196.8 kB / 425.9 MB, free: 448 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.229e-05/0.3256, allocations: 12 kB / 425.9 MB, free: 436 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000149/0.3258, allocations: 19.98 kB / 425.9 MB, free: 416 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002048/0.326, allocations: 91.84 kB / 426 MB, free: 324 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002248/0.3262, allocations: 283.7 kB / 426.3 MB, free: 40 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002023/0.3264, allocations: 205.9 kB / 426.5 MB, free: 15.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3264, allocations: 0 / 426.5 MB, free: 15.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004056/0.3269, allocations: 103.8 kB / 426.6 MB, free: 15.73 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.0001729/0.327, allocations: 141.8 kB / 426.7 MB, free: 15.59 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001109/0.3281, allocations: 0.561 MB / 427.3 MB, free: 15 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3282, allocations: 0 / 427.3 MB, free: 15 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005162/0.3287, allocations: 358.5 kB / 427.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001216/0.3299, allocations: 334.6 kB / 428 MB, free: 14.33 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001366/0.3313, allocations: 0.7042 MB / 428.7 MB, free: 13.6 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000501/0.3318, allocations: 0.8111 MB / 429.5 MB, free: 12.76 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001336/0.3331, allocations: 0.7471 MB / 430.2 MB, free: 12.01 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006573/0.3338, allocations: 270.8 kB / 430.5 MB, free: 11.74 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3338, allocations: 0 / 430.5 MB, free: 11.74 MB / 350.1 MB Notification: Performance of Templates: time 0.01549/0.3493, allocations: 10.92 MB / 441.4 MB, free: 0.6641 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