Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009978/0.0009979, allocations: 183.2 kB / 8.481 MB, free: 1.871 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.206/1.206, allocations: 205.2 MB / 214.1 MB, free: 5.148 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008843/0.0008843, allocations: 82.33 kB / 262.1 MB, free: 5.199 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.031e-06/6.071e-06, allocations: 0 / 315 MB, free: 41.49 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07184/0.07186, allocations: 47.57 MB / 362.5 MB, free: 9.969 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2181/0.2899, allocations: 81.75 MB / 444.3 MB, free: 10.75 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001465/0.2901, allocations: 68.52 kB / 444.4 MB, free: 10.75 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.07226/0.3624, allocations: 41.96 MB / 486.3 MB, free: 7.629 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.049e-05/0.3625, allocations: 12 kB / 486.3 MB, free: 7.617 MB / 330.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.0008844/0.3633, allocations: 0.6895 MB / 487 MB, free: 6.867 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.338e-05/0.3634, allocations: 8.031 kB / 487 MB, free: 6.859 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001283/0.3635, allocations: 47.44 kB / 487.1 MB, free: 6.812 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004984/0.364, allocations: 346.1 kB / 487.4 MB, free: 6.438 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.921e-05/0.3641, allocations: 12 kB / 487.4 MB, free: 6.426 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.653e-05/0.3642, allocations: 24 kB / 487.4 MB, free: 6.402 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006419/0.3648, allocations: 341.2 kB / 487.8 MB, free: 6.066 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007336/0.3655, allocations: 432.4 kB / 488.2 MB, free: 5.637 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.3656, allocations: 0 / 488.2 MB, free: 5.637 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.212e-05/0.3656, allocations: 4 kB / 488.2 MB, free: 5.633 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.3657, allocations: 12 kB / 488.2 MB, free: 5.621 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00172/0.3674, allocations: 1.022 MB / 489.2 MB, free: 4.574 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007903/0.3682, allocations: 390.4 kB / 489.6 MB, free: 4.184 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002421/0.3684, allocations: 145.4 kB / 489.8 MB, free: 4.039 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.552e-05/0.3685, allocations: 8.219 kB / 489.8 MB, free: 4.031 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004131/0.3689, allocations: 307.4 kB / 490.1 MB, free: 3.719 MB / 330.7 MB Notification: Performance of pre-optimization done (n=35): time 1.703e-06/0.3689, allocations: 7.938 kB / 490.1 MB, free: 3.711 MB / 330.7 MB Notification: Performance of matching and sorting (n=35): time 0.00083/0.3698, allocations: 436.7 kB / 490.5 MB, free: 3.277 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.002e-05/0.3699, allocations: 114.8 kB / 490.6 MB, free: 3.141 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002715/0.3701, allocations: 260.8 kB / 490.9 MB, free: 2.883 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.288e-05/0.3702, allocations: 37.69 kB / 490.9 MB, free: 2.84 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.048e-05/0.3703, allocations: 144.7 kB / 491 MB, free: 2.695 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001169/0.3704, allocations: 75.02 kB / 491.1 MB, free: 2.621 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.022e-05/0.3705, allocations: 4 kB / 491.1 MB, free: 2.617 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.3706, allocations: 346.8 kB / 491.5 MB, free: 2.27 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002742/0.3709, allocations: 152.8 kB / 491.6 MB, free: 2.121 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003136/0.3712, allocations: 203.7 kB / 491.8 MB, free: 1.906 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002975/0.3715, allocations: 167.9 kB / 492 MB, free: 1.742 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3716, allocations: 4 kB / 492 MB, free: 1.738 MB / 330.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008152/0.3724, allocations: 0.5002 MB / 492.5 MB, free: 1.234 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.104e-05/0.3724, allocations: 8 kB / 492.5 MB, free: 1.227 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.3724, allocations: 3.938 kB / 492.5 MB, free: 1.223 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.3724, allocations: 4 kB / 492.5 MB, free: 1.219 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001531/0.3726, allocations: 63.89 kB / 492.6 MB, free: 1.156 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.02e-06/0.3726, allocations: 0 / 492.6 MB, free: 1.156 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002813/0.3729, allocations: 43.81 kB / 492.6 MB, free: 1.113 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002896/0.3732, allocations: 287.8 kB / 492.9 MB, free: 0.832 MB / 330.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,FF.RS2.Nor2.x[2],FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.auxiliary_n,$PRE.FF.RS2.TD1.x,FF.RS2.TD1.x_delayed,FF.And2.y,$PRE.FF.And2.auxiliary_n,FF.RS1.Nor2.x[2],FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.auxiliary_n,$PRE.FF.RS1.TD1.x,FF.RS1.TD1.x_delayed,FF.And4.y,$PRE.FF.And4.auxiliary_n,FF.RS2.Nor1.auxiliary[2],$PRE.FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor1.auxiliary_n,$PRE.FF.RS2.Nor2.auxiliary_n,FF.RS2.TD1.x,FF.And1.y,$PRE.FF.And1.auxiliary_n,FF.And3.x[1],FF.And3.x[2],FF.And3.auxiliary_n,FF.And4.auxiliary_n,$PRE.FF.Not1.auxiliary,FF.RS1.Nor1.auxiliary[2],$PRE.FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor1.auxiliary_n,$PRE.FF.RS1.Nor2.auxiliary_n,FF.RS1.TD1.x,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.y,$PRE.FF.And3.auxiliary_n,FF.Not1.auxiliary,CLK.y,$PRE.CLK.t_i,CLK.t_i,J.y,K.y) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002266/0.3734, allocations: 192.2 kB / 493.1 MB, free: 0.625 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.425e-05/0.3735, allocations: 31.62 kB / 493.1 MB, free: 0.5938 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.263e-05/0.3736, allocations: 34.95 kB / 493.1 MB, free: 0.5547 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.3736, allocations: 4 kB / 493.1 MB, free: 0.5508 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.3736, allocations: 4 kB / 493.1 MB, free: 0.5469 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/0.3736, allocations: 3.984 kB / 493.1 MB, free: 0.543 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004972/0.3741, allocations: 401.1 kB / 493.5 MB, free: 124 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.3741, allocations: 0 / 493.5 MB, free: 124 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001199/0.3743, allocations: 55.91 kB / 493.6 MB, free: 68 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.3743, allocations: 0 / 493.6 MB, free: 68 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.345e-05/0.3744, allocations: 47.97 kB / 493.6 MB, free: 20 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.3744, allocations: 3.906 kB / 493.6 MB, free: 16 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.3744, allocations: 0 / 493.6 MB, free: 16 kB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007504/0.3751, allocations: 468.7 kB / 494.1 MB, free: 15.54 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002804/0.3754, allocations: 204.6 kB / 494.3 MB, free: 15.32 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001245/0.3756, allocations: 12 kB / 494.3 MB, free: 15.31 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002319/0.3758, allocations: 39.81 kB / 494.3 MB, free: 15.27 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002031/0.376, allocations: 75.91 kB / 494.4 MB, free: 15.2 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002524/0.3763, allocations: 287.4 kB / 494.7 MB, free: 14.92 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0001668/0.3764, allocations: 193.2 kB / 494.9 MB, free: 14.73 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003586/0.3768, allocations: 76 kB / 495 MB, free: 14.65 MB / 346.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[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[2],FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.auxiliary_n,FF.RS2.TD1.x,FF.RS2.TD1.x_delayed,FF.And1.y,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.y,FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.x[1],FF.And3.x[2],FF.And3.y,FF.And3.auxiliary_n,FF.And4.y,FF.And4.auxiliary_n,FF.Not1.auxiliary,CLK.y,CLK.t_i,J.y,K.y) * Number of discrete states: 13 (K.y,J.y,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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001874/0.377, allocations: 126.6 kB / 495.1 MB, free: 14.52 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00071/0.3777, allocations: 459.2 kB / 495.5 MB, free: 14.06 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3777, allocations: 12 kB / 495.5 MB, free: 14.05 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003723/0.3781, allocations: 275.2 kB / 495.8 MB, free: 13.77 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001041/0.3792, allocations: 271.4 kB / 496.1 MB, free: 13.5 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001164/0.3803, allocations: 0.5223 MB / 496.6 MB, free: 12.96 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001879/0.3822, allocations: 1.477 MB / 498.1 MB, free: 11.45 MB / 346.7 MB Notification: Performance of SimCode: time 2.6e-07/0.3822, allocations: 4 kB / 498.1 MB, free: 11.45 MB / 346.7 MB Notification: Performance of Templates: time 0.01681/0.3991, allocations: 13.6 MB / 0.4997 GB, free: 13.42 MB / 362.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/FlipFlop/FlipFlop.csv","../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches