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.001106/0.001106, allocations: 113.3 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001108/0.001108, allocations: 206.7 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001183, allocations: 67.88 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2947/0.2959, allocations: 50.54 MB / 409.9 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003124/0.2991, allocations: 2.147 MB / 412.1 MB, free: 15.45 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002378/0.3015, allocations: 1.15 MB / 413.2 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002103/0.3017, allocations: 3.938 kB / 413.2 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002157/0.3019, allocations: 51.58 kB / 413.3 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001479/0.3021, allocations: 43.64 kB / 413.3 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005479/0.3026, allocations: 175.7 kB / 413.5 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004601/0.3031, allocations: 459.6 kB / 413.9 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002555/0.3034, allocations: 160.9 kB / 414.1 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007687/0.3042, allocations: 0.8383 MB / 414.9 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002987/0.3045, allocations: 255 kB / 415.2 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000115/0.3046, allocations: 44 kB / 415.2 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000105/0.3047, allocations: 44 kB / 415.3 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001851/0.3049, allocations: 143.5 kB / 415.4 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002405/0.3051, allocations: 218.8 kB / 415.6 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007522/0.3059, allocations: 0.9267 MB / 416.6 MB, free: 10.95 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.3059, allocations: 4 kB / 416.6 MB, free: 10.94 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.001e-06/0.3059, allocations: 3.938 kB / 416.6 MB, free: 10.94 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.447e-06/0.3059, allocations: 0 / 416.6 MB, free: 10.94 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.001178/0.3071, allocations: 0.8656 MB / 417.4 MB, free: 10.02 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.3072, allocations: 8.031 kB / 417.4 MB, free: 10.01 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00013/0.3073, allocations: 52.45 kB / 417.5 MB, free: 9.957 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004784/0.3078, allocations: 351.3 kB / 417.8 MB, free: 9.574 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.26e-05/0.3078, allocations: 25.03 kB / 417.9 MB, free: 9.551 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.573e-05/0.3079, allocations: 36.38 kB / 417.9 MB, free: 9.516 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008975/0.3088, allocations: 490.1 kB / 418.4 MB, free: 9.031 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.3089, allocations: 7.984 kB / 418.4 MB, free: 9.023 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.579e-05/0.3089, allocations: 12 kB / 418.4 MB, free: 9.012 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.828e-06/0.309, allocations: 8 kB / 418.4 MB, free: 9.004 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007564/0.3097, allocations: 378.3 kB / 418.8 MB, free: 8.637 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001832/0.3116, allocations: 1.108 MB / 419.9 MB, free: 7.473 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001092/0.3127, allocations: 431.5 kB / 420.3 MB, free: 7.043 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003446/0.313, allocations: 181.3 kB / 420.5 MB, free: 6.863 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.41e-05/0.3131, allocations: 8.219 kB / 420.5 MB, free: 6.855 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006169/0.3137, allocations: 340.2 kB / 420.8 MB, free: 6.512 MB / 334.1 MB Notification: Performance of pre-optimization done (n=35): time 2.435e-06/0.3137, allocations: 0 / 420.8 MB, free: 6.512 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.00142/0.3151, allocations: 0.7304 MB / 421.5 MB, free: 5.762 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.074e-05/0.3152, allocations: 114.8 kB / 421.7 MB, free: 5.625 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003198/0.3156, allocations: 306.3 kB / 422 MB, free: 5.316 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.187e-05/0.3156, allocations: 45.7 kB / 422 MB, free: 5.266 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001407/0.3158, allocations: 184.6 kB / 422.2 MB, free: 5.082 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001187/0.3159, allocations: 79 kB / 422.3 MB, free: 5.004 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003305/0.3162, allocations: 186.1 kB / 422.4 MB, free: 4.816 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.3164, allocations: 334.8 kB / 422.8 MB, free: 4.48 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003989/0.3168, allocations: 184.8 kB / 422.9 MB, free: 4.301 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004677/0.3173, allocations: 240.5 kB / 423.2 MB, free: 4.051 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008675/0.3182, allocations: 0.5285 MB / 423.7 MB, free: 3.484 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/0.3182, allocations: 0 / 423.7 MB, free: 3.484 MB / 334.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001158/0.3194, allocations: 0.6448 MB / 424.4 MB, free: 2.82 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.585e-05/0.3194, allocations: 66.06 kB / 424.4 MB, free: 2.746 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.3194, allocations: 0 / 424.4 MB, free: 2.746 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.788e-05/0.3195, allocations: 4 kB / 424.4 MB, free: 2.742 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001649/0.3196, allocations: 63.89 kB / 424.5 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.247e-05/0.3197, allocations: 4 kB / 424.5 MB, free: 2.676 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002081/0.3199, allocations: 27.83 kB / 424.5 MB, free: 2.648 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002447/0.3201, allocations: 279.7 kB / 424.8 MB, free: 2.375 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.000328/0.3205, allocations: 297 kB / 425.1 MB, free: 2.062 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.117e-05/0.3206, allocations: 31.62 kB / 425.1 MB, free: 2.031 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.142e-05/0.3207, allocations: 42.89 kB / 425.2 MB, free: 1.984 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-06/0.3207, allocations: 0 / 425.2 MB, free: 1.984 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.3207, allocations: 3.938 kB / 425.2 MB, free: 1.98 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003552/0.321, allocations: 196.7 kB / 425.3 MB, free: 1.77 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001132/0.3212, allocations: 23.92 kB / 425.4 MB, free: 1.746 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001623/0.3213, allocations: 16 kB / 425.4 MB, free: 1.73 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002233/0.3216, allocations: 83.91 kB / 425.5 MB, free: 1.648 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001215/0.3228, allocations: 0.8005 MB / 426.3 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001052/0.3238, allocations: 0.7515 MB / 427 MB, free: 24 kB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003928/0.3242, allocations: 203.8 kB / 427.2 MB, free: 15.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002017/0.3245, allocations: 198 kB / 427.4 MB, free: 15.63 MB / 350.1 MB Notification: Performance of Backend: time 5.71e-07/0.3245, allocations: 4 kB / 427.4 MB, free: 15.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001063/0.3255, allocations: 487.2 kB / 427.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of SimCode: time 0.001838/0.3274, allocations: 1.321 MB / 429.2 MB, free: 13.74 MB / 350.1 MB Notification: Performance of Templates: time 0.01994/0.3473, allocations: 13.33 MB / 442.5 MB, free: 8 kB / 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/FlipFlop/FlipFlop.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches