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.001166/0.001165, allocations: 110 kB / 17.68 MB, free: 5.332 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.001258/0.001258, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.519/1.519, allocations: 222.9 MB / 242.3 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 55.27 kB / 302 MB, free: 5.141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1299/0.1311, allocations: 49.45 MB / 351.5 MB, free: 3.672 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003962/0.1351, allocations: 2.128 MB / 353.6 MB, free: 1.531 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002688/0.1378, allocations: 1.122 MB / 354.7 MB, free: 412 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001199/0.138, allocations: 7.938 kB / 354.8 MB, free: 404 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000208/0.1382, allocations: 47.58 kB / 354.8 MB, free: 356 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000115/0.1383, allocations: 39.64 kB / 354.8 MB, free: 316 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005797/0.1389, allocations: 183.7 kB / 355 MB, free: 132 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005685/0.1395, allocations: 463.5 kB / 355.5 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003288/0.1399, allocations: 160.9 kB / 355.6 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009879/0.1409, allocations: 0.8382 MB / 356.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003786/0.1413, allocations: 247.1 kB / 356.7 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.413e-05/0.1414, allocations: 40 kB / 356.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.971e-05/0.1414, allocations: 44 kB / 356.8 MB, free: 14.35 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002114/0.1417, allocations: 147.5 kB / 356.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002506/0.1419, allocations: 218.8 kB / 357.1 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008069/0.1427, allocations: 0.9267 MB / 358.1 MB, free: 13.06 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.1427, allocations: 0 / 358.1 MB, free: 13.06 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1428, allocations: 0 / 358.1 MB, free: 13.06 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.3e-05/0.1428, allocations: 0 / 358.1 MB, free: 13.06 MB / 302.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.001318/0.1441, allocations: 0.88 MB / 359 MB, free: 12.12 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.112e-05/0.1441, allocations: 12.03 kB / 359 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001348/0.1443, allocations: 44.47 kB / 359 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005976/0.1449, allocations: 355.3 kB / 359.4 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.521e-05/0.1449, allocations: 21.03 kB / 359.4 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.792e-05/0.145, allocations: 36.38 kB / 359.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009009/0.1459, allocations: 494.1 kB / 359.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/0.146, allocations: 0 / 359.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.913e-05/0.146, allocations: 16 kB / 359.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.059e-05/0.146, allocations: 8 kB / 359.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007569/0.1468, allocations: 374.4 kB / 360.3 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002145/0.149, allocations: 1.116 MB / 361.4 MB, free: 9.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001054/0.15, allocations: 443.5 kB / 361.8 MB, free: 9.129 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003529/0.1504, allocations: 181.3 kB / 362 MB, free: 8.949 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.414e-05/0.1505, allocations: 288 / 362 MB, free: 8.949 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006559/0.1512, allocations: 347 kB / 362.3 MB, free: 8.598 MB / 302.1 MB Notification: Performance of pre-optimization done (n=35): time 2.114e-06/0.1512, allocations: 0 / 362.3 MB, free: 8.598 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.001484/0.1527, allocations: 0.7314 MB / 363.1 MB, free: 7.848 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.831e-05/0.1528, allocations: 114.8 kB / 363.2 MB, free: 7.711 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000335/0.1531, allocations: 302.5 kB / 363.5 MB, free: 7.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.275e-05/0.1532, allocations: 37.7 kB / 363.5 MB, free: 7.367 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000143/0.1533, allocations: 184.7 kB / 363.7 MB, free: 7.184 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001092/0.1534, allocations: 79 kB / 363.8 MB, free: 7.105 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002761/0.1537, allocations: 190 kB / 364 MB, free: 6.914 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.1539, allocations: 342.7 kB / 364.3 MB, free: 6.57 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003626/0.1543, allocations: 180.8 kB / 364.5 MB, free: 6.395 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000404/0.1547, allocations: 236.5 kB / 364.7 MB, free: 6.152 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008111/0.1555, allocations: 0.5145 MB / 365.2 MB, free: 5.598 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.1555, allocations: 3.938 kB / 365.2 MB, free: 5.594 MB / 302.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.00113/0.1566, allocations: 0.6438 MB / 365.9 MB, free: 4.934 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.544e-05/0.1567, allocations: 67.39 kB / 365.9 MB, free: 4.855 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/0.1567, allocations: 4 kB / 365.9 MB, free: 4.852 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.015e-05/0.1568, allocations: 4.031 kB / 365.9 MB, free: 4.848 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001627/0.1569, allocations: 63.84 kB / 366 MB, free: 4.785 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.076e-05/0.1569, allocations: 4 kB / 366 MB, free: 4.781 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001966/0.1572, allocations: 27.83 kB / 366 MB, free: 4.754 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002891/0.1574, allocations: 283.7 kB / 366.3 MB, free: 4.477 MB / 302.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.0003468/0.1578, allocations: 293 kB / 366.6 MB, free: 4.168 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.844e-05/0.1579, allocations: 31.62 kB / 366.6 MB, free: 4.137 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.703e-05/0.158, allocations: 38.95 kB / 366.7 MB, free: 4.094 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.293e-06/0.158, allocations: 4 kB / 366.7 MB, free: 4.09 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.185e-05/0.158, allocations: 4 kB / 366.7 MB, free: 4.086 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.158, allocations: 0 / 366.7 MB, free: 4.086 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000621/0.1586, allocations: 485.1 kB / 367.2 MB, free: 3.562 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.1587, allocations: 0 / 367.2 MB, free: 3.562 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001158/0.1588, allocations: 51.91 kB / 367.2 MB, free: 3.512 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.382e-06/0.1588, allocations: 8 kB / 367.2 MB, free: 3.504 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.693e-05/0.1589, allocations: 43.97 kB / 367.3 MB, free: 3.461 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.024e-06/0.1589, allocations: 4 kB / 367.3 MB, free: 3.457 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.1589, allocations: 3.938 kB / 367.3 MB, free: 3.453 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001055/0.16, allocations: 0.6052 MB / 367.9 MB, free: 2.816 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003933/0.1604, allocations: 192.7 kB / 368.1 MB, free: 2.609 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001024/0.1605, allocations: 20 kB / 368.1 MB, free: 2.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001409/0.1606, allocations: 19.98 kB / 368.1 MB, free: 2.57 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000258/0.1609, allocations: 83.92 kB / 368.2 MB, free: 2.488 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002838/0.1612, allocations: 279.7 kB / 368.4 MB, free: 2.215 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000216/0.1614, allocations: 209.9 kB / 368.7 MB, free: 2.012 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1614, allocations: 0 / 368.7 MB, free: 2.012 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004326/0.1619, allocations: 107.7 kB / 368.8 MB, free: 1.906 MB / 302.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.0002396/0.1621, allocations: 142.3 kB / 368.9 MB, free: 1.758 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000966/0.1631, allocations: 0.553 MB / 369.5 MB, free: 1.18 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.1631, allocations: 0 / 369.5 MB, free: 1.18 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005042/0.1636, allocations: 350.6 kB / 369.8 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001137/0.1648, allocations: 334.9 kB / 370.1 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2135/0.3782, allocations: 0.6999 MB / 370.8 MB, free: 25.21 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003948/0.3787, allocations: 0.8044 MB / 371.6 MB, free: 24.51 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.001808/0.3805, allocations: 0.7514 MB / 372.4 MB, free: 24.04 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007182/0.3812, allocations: 264.7 kB / 372.6 MB, free: 23.89 MB / 302.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3812, allocations: 0 / 372.6 MB, free: 23.89 MB / 302.1 MB Notification: Performance of Templates: time 0.02336/0.4046, allocations: 10.88 MB / 383.5 MB, free: 20.99 MB / 302.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 -s cvode -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/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_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches