Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001614/0.001614, allocations: 112.8 kB / 17.06 MB, free: 5.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001697/0.001697, allocations: 200 kB / 18 MB, free: 5.035 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.495/1.495, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001192/0.001193, allocations: 51.92 kB / 351.3 MB, free: 3.227 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3817/0.383, allocations: 49.43 MB / 400.7 MB, free: 8.719 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003198/0.3862, allocations: 2.144 MB / 402.9 MB, free: 6.691 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002369/0.3886, allocations: 1.111 MB / 404 MB, free: 5.574 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.714e-05/0.3887, allocations: 4 kB / 404 MB, free: 5.57 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002101/0.3889, allocations: 55.45 kB / 404 MB, free: 5.516 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001245/0.3891, allocations: 47.58 kB / 404.1 MB, free: 5.469 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004859/0.3896, allocations: 171.7 kB / 404.3 MB, free: 5.301 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00045/0.39, allocations: 467.6 kB / 404.7 MB, free: 4.844 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003121/0.3904, allocations: 164.9 kB / 404.9 MB, free: 4.68 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000995/0.3914, allocations: 0.8383 MB / 405.7 MB, free: 3.84 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003186/0.3917, allocations: 247.1 kB / 406 MB, free: 3.598 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001006/0.3918, allocations: 44 kB / 406 MB, free: 3.555 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.054e-05/0.3919, allocations: 43.94 kB / 406 MB, free: 3.512 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001978/0.3921, allocations: 147.5 kB / 406.2 MB, free: 3.367 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002905/0.3924, allocations: 222.7 kB / 406.4 MB, free: 3.148 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008409/0.3932, allocations: 0.9267 MB / 407.3 MB, free: 2.219 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.3932, allocations: 0 / 407.3 MB, free: 2.219 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.3933, allocations: 4 kB / 407.3 MB, free: 2.215 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.384e-06/0.3933, allocations: 0 / 407.3 MB, free: 2.215 MB / 318.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.001231/0.3945, allocations: 0.8657 MB / 408.2 MB, free: 1.293 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.3946, allocations: 8.031 kB / 408.2 MB, free: 1.285 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001302/0.3947, allocations: 52.36 kB / 408.3 MB, free: 1.234 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005136/0.3952, allocations: 351.4 kB / 408.6 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.536e-05/0.3953, allocations: 25.03 kB / 408.6 MB, free: 0.832 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.086e-05/0.3954, allocations: 36.38 kB / 408.7 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008598/0.3962, allocations: 494 kB / 409.1 MB, free: 312 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.3962, allocations: 0 / 409.1 MB, free: 312 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.209e-05/0.3963, allocations: 19.97 kB / 409.2 MB, free: 292 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.23e-05/0.3963, allocations: 8 kB / 409.2 MB, free: 284 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007788/0.3971, allocations: 378.4 kB / 409.5 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001901/0.399, allocations: 1.116 MB / 410.7 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001122/0.4002, allocations: 431.5 kB / 411.1 MB, free: 14.31 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003401/0.4005, allocations: 181.3 kB / 411.3 MB, free: 14.13 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.696e-05/0.4006, allocations: 4.281 kB / 411.3 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006193/0.4012, allocations: 347 kB / 411.6 MB, free: 13.77 MB / 334.1 MB Notification: Performance of pre-optimization done (n=35): time 2.385e-06/0.4012, allocations: 0 / 411.6 MB, free: 13.77 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.001567/0.4028, allocations: 0.7276 MB / 412.3 MB, free: 13.02 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.298e-05/0.4029, allocations: 106.8 kB / 412.4 MB, free: 12.89 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000308/0.4032, allocations: 310.4 kB / 412.7 MB, free: 12.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.927e-05/0.4033, allocations: 41.7 kB / 412.8 MB, free: 12.54 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001329/0.4034, allocations: 184.7 kB / 412.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001269/0.4035, allocations: 79 kB / 413 MB, free: 12.28 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000255/0.4038, allocations: 178.1 kB / 413.2 MB, free: 12.1 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001862/0.404, allocations: 342.8 kB / 413.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004103/0.4044, allocations: 184.8 kB / 413.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005101/0.4049, allocations: 240.5 kB / 414 MB, free: 11.32 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001133/0.4061, allocations: 0.5184 MB / 414.5 MB, free: 10.76 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.4061, allocations: 3.938 kB / 414.5 MB, free: 10.76 MB / 334.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001394/0.4075, allocations: 0.6477 MB / 415.1 MB, free: 10.09 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.864e-05/0.4076, allocations: 63.41 kB / 415.2 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.29e-05/0.4076, allocations: 0 / 415.2 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.271e-05/0.4077, allocations: 4 kB / 415.2 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002848/0.408, allocations: 59.89 kB / 415.2 MB, free: 9.957 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.394e-05/0.408, allocations: 4 kB / 415.2 MB, free: 9.953 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000295/0.4083, allocations: 27.83 kB / 415.3 MB, free: 9.926 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004479/0.4088, allocations: 283.7 kB / 415.6 MB, free: 9.648 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.0005644/0.4094, allocations: 293 kB / 415.8 MB, free: 9.34 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001092/0.4095, allocations: 31.62 kB / 415.9 MB, free: 9.309 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001276/0.4096, allocations: 38.95 kB / 415.9 MB, free: 9.266 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/0.4096, allocations: 4 kB / 415.9 MB, free: 9.262 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.201e-05/0.4096, allocations: 0 / 415.9 MB, free: 9.262 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.028e-05/0.4097, allocations: 4 kB / 415.9 MB, free: 9.258 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000897/0.4106, allocations: 481.2 kB / 416.4 MB, free: 8.738 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.732e-06/0.4106, allocations: 4 kB / 416.4 MB, free: 8.734 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001421/0.4107, allocations: 51.91 kB / 416.4 MB, free: 8.684 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.562e-06/0.4108, allocations: 3.938 kB / 416.4 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001036/0.4109, allocations: 51.97 kB / 416.5 MB, free: 8.629 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.4109, allocations: 160 / 416.5 MB, free: 8.629 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.4109, allocations: 0 / 416.5 MB, free: 8.629 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001362/0.4123, allocations: 0.6091 MB / 417.1 MB, free: 7.988 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003371/0.4126, allocations: 192.7 kB / 417.3 MB, free: 7.781 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.206e-05/0.4127, allocations: 15.98 kB / 417.3 MB, free: 7.766 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001521/0.4129, allocations: 20 kB / 417.3 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002597/0.4131, allocations: 87.91 kB / 417.4 MB, free: 7.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002935/0.4134, allocations: 279.7 kB / 417.7 MB, free: 7.387 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002181/0.4137, allocations: 205.9 kB / 417.9 MB, free: 7.184 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.332e-06/0.4137, allocations: 0 / 417.9 MB, free: 7.184 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004433/0.4141, allocations: 103.8 kB / 418 MB, free: 7.082 MB / 334.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.0002329/0.4144, allocations: 138.3 kB / 418.1 MB, free: 6.938 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001037/0.4154, allocations: 0.5608 MB / 418.7 MB, free: 6.352 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.4154, allocations: 4.062 kB / 418.7 MB, free: 6.348 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005281/0.416, allocations: 358.5 kB / 419 MB, free: 5.973 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001179/0.4171, allocations: 339.8 kB / 419.4 MB, free: 5.672 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001408/0.4186, allocations: 0.7047 MB / 420.1 MB, free: 4.941 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004045/0.419, allocations: 0.8072 MB / 420.9 MB, free: 4.109 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.00143/0.4204, allocations: 0.7471 MB / 421.6 MB, free: 3.359 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007432/0.4212, allocations: 262.8 kB / 421.9 MB, free: 3.102 MB / 334.1 MB Notification: Performance of SimCode: time 7.41e-07/0.4212, allocations: 0 / 421.9 MB, free: 3.102 MB / 334.1 MB Notification: Performance of Templates: time 0.01722/0.4384, allocations: 10.9 MB / 432.8 MB, free: 8.07 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches