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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001506/0.001506, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.487/1.487, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001314/0.001314, allocations: 110.5 kB / 291.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000866/0.0008661, allocations: 43.94 kB / 350 MB, free: 68 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.288/0.2888, allocations: 49.43 MB / 399.5 MB, free: 33.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.00413/0.2931, allocations: 2.183 MB / 401.7 MB, free: 31.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002413/0.2955, allocations: 1.099 MB / 402.8 MB, free: 30.07 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001942/0.2958, allocations: 8.938 kB / 402.8 MB, free: 30.07 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002843/0.2961, allocations: 35.7 kB / 402.8 MB, free: 30.03 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001381/0.2963, allocations: 30.84 kB / 402.8 MB, free: 30 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005255/0.2968, allocations: 159.8 kB / 403 MB, free: 29.85 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003842/0.2972, allocations: 415.7 kB / 403.4 MB, free: 29.44 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002983/0.2975, allocations: 152.9 kB / 403.5 MB, free: 29.29 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006983/0.2982, allocations: 0.8187 MB / 404.4 MB, free: 28.47 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002364/0.2985, allocations: 235 kB / 404.6 MB, free: 28.24 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.888e-05/0.2986, allocations: 19.94 kB / 404.6 MB, free: 28.22 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.829e-05/0.2987, allocations: 20 kB / 404.6 MB, free: 28.2 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00019/0.2989, allocations: 119.5 kB / 404.7 MB, free: 28.09 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002467/0.2991, allocations: 194.8 kB / 404.9 MB, free: 27.89 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006252/0.2997, allocations: 0.8956 MB / 405.8 MB, free: 27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/0.2998, allocations: 3.938 kB / 405.8 MB, free: 26.99 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2998, allocations: 4 kB / 405.8 MB, free: 26.99 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.306e-06/0.2998, allocations: 0 / 405.8 MB, free: 26.99 MB / 298.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.001307/0.3011, allocations: 0.8777 MB / 406.7 MB, free: 26.05 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.046e-05/0.3012, allocations: 12.03 kB / 406.7 MB, free: 26.04 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001389/0.3013, allocations: 44.47 kB / 406.8 MB, free: 25.99 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004905/0.3018, allocations: 347.4 kB / 407.1 MB, free: 25.61 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.317e-05/0.3019, allocations: 29.03 kB / 407.1 MB, free: 25.59 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.63e-05/0.302, allocations: 32.38 kB / 407.2 MB, free: 25.55 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007537/0.3027, allocations: 498.1 kB / 407.7 MB, free: 25.06 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.904e-05/0.3027, allocations: 3.984 kB / 407.7 MB, free: 25.06 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.238e-05/0.3028, allocations: 16 kB / 407.7 MB, free: 25.04 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.571e-05/0.3028, allocations: 8 kB / 407.7 MB, free: 25.04 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006548/0.3035, allocations: 382.3 kB / 408.1 MB, free: 24.66 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001853/0.3054, allocations: 1.108 MB / 409.2 MB, free: 23.5 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009889/0.3064, allocations: 432.2 kB / 409.6 MB, free: 23.07 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003082/0.3067, allocations: 182.2 kB / 409.8 MB, free: 22.89 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.469e-05/0.3068, allocations: 4.281 kB / 409.8 MB, free: 22.88 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000641/0.3074, allocations: 347.1 kB / 410.1 MB, free: 22.53 MB / 298.7 MB Notification: Performance of pre-optimization done (n=35): time 3.457e-06/0.3075, allocations: 0 / 410.1 MB, free: 22.53 MB / 298.7 MB Notification: Performance of matching and sorting (n=35): time 0.001315/0.3088, allocations: 0.724 MB / 410.8 MB, free: 21.79 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.289e-05/0.3089, allocations: 114.8 kB / 410.9 MB, free: 21.65 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003146/0.3092, allocations: 306.4 kB / 411.2 MB, free: 21.35 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.396e-05/0.3092, allocations: 37.7 kB / 411.3 MB, free: 21.3 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001334/0.3094, allocations: 184.6 kB / 411.5 MB, free: 21.12 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.268e-05/0.3095, allocations: 79.06 kB / 411.5 MB, free: 21.04 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000262/0.3098, allocations: 186 kB / 411.7 MB, free: 20.86 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.3099, allocations: 338.8 kB / 412 MB, free: 20.52 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003428/0.3102, allocations: 192.7 kB / 412.2 MB, free: 20.33 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003775/0.3106, allocations: 236.5 kB / 412.5 MB, free: 20.08 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006984/0.3113, allocations: 0.5177 MB / 413 MB, free: 19.53 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.3113, allocations: 0 / 413 MB, free: 19.53 MB / 298.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001022/0.3124, allocations: 0.6448 MB / 413.6 MB, free: 18.86 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.112e-05/0.3124, allocations: 59.41 kB / 413.7 MB, free: 18.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/0.3125, allocations: 0 / 413.7 MB, free: 18.79 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.24e-05/0.3125, allocations: 4 kB / 413.7 MB, free: 18.79 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001458/0.3126, allocations: 63.89 kB / 413.8 MB, free: 18.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.285e-05/0.3127, allocations: 4 kB / 413.8 MB, free: 18.72 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003391/0.313, allocations: 55.75 kB / 413.8 MB, free: 18.67 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002643/0.3133, allocations: 287.7 kB / 414.1 MB, free: 18.39 MB / 298.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,$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.0003606/0.3137, allocations: 292.9 kB / 414.4 MB, free: 18.08 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.437e-05/0.3137, allocations: 27.72 kB / 414.4 MB, free: 18.05 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.313e-05/0.3138, allocations: 38.95 kB / 414.4 MB, free: 18.01 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.334e-06/0.3138, allocations: 4 kB / 414.4 MB, free: 18 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.073e-05/0.3139, allocations: 0 / 414.4 MB, free: 18 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/0.3139, allocations: 3.984 kB / 414.5 MB, free: 18 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005569/0.3144, allocations: 485.1 kB / 414.9 MB, free: 17.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.3144, allocations: 0 / 414.9 MB, free: 17.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.105e-05/0.3145, allocations: 51.89 kB / 415 MB, free: 17.43 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.589e-06/0.3146, allocations: 4 kB / 415 MB, free: 17.42 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.714e-05/0.3146, allocations: 39.98 kB / 415 MB, free: 17.38 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.436e-06/0.3146, allocations: 4 kB / 415 MB, free: 17.38 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.3146, allocations: 3.984 kB / 415 MB, free: 17.38 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001483/0.3161, allocations: 1.412 MB / 416.4 MB, free: 15.89 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003711/0.3165, allocations: 188.7 kB / 416.6 MB, free: 15.69 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.777e-05/0.3166, allocations: 19.94 kB / 416.6 MB, free: 15.67 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002142/0.3168, allocations: 51.78 kB / 416.7 MB, free: 15.62 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002545/0.3171, allocations: 87.91 kB / 416.8 MB, free: 15.53 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002101/0.3173, allocations: 283.7 kB / 417.1 MB, free: 15.25 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001756/0.3175, allocations: 202 kB / 417.3 MB, free: 15.06 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3175, allocations: 3.938 kB / 417.3 MB, free: 15.05 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005351/0.3181, allocations: 91.84 kB / 417.3 MB, free: 14.96 MB / 298.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[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.0002312/0.3183, allocations: 141.8 kB / 417.5 MB, free: 14.82 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009365/0.3192, allocations: 0.553 MB / 418 MB, free: 14.24 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.3193, allocations: 0 / 418 MB, free: 14.24 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004391/0.3197, allocations: 362.5 kB / 418.4 MB, free: 13.86 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001268/0.321, allocations: 297.4 kB / 418.7 MB, free: 13.58 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001441/0.3224, allocations: 1.076 MB / 419.8 MB, free: 12.46 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003004/0.3228, allocations: 0.815 MB / 420.6 MB, free: 11.62 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.001339/0.3241, allocations: 0.7471 MB / 421.3 MB, free: 10.87 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006404/0.3248, allocations: 262.8 kB / 421.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of SimCode: time 1.573e-06/0.3248, allocations: 0 / 421.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of Templates: time 0.01344/0.3382, allocations: 10.53 MB / 432.1 MB, free: 15.95 MB / 314.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/FlipFlop/FlipFlop.csv","../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches