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/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 3.2.3+maint.om/package.mo", uses=false) 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 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_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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001183/0.001182, allocations: 104 kB / 17.58 MB, free: 5.418 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.001351/0.001351, allocations: 191.9 kB / 18.51 MB, free: 4.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.604/1.604, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 55.92 kB / 280.6 MB, free: 3.188 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1195, allocations: 46.63 MB / 327.3 MB, free: 4.484 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.004539/0.1242, allocations: 2.124 MB / 329.4 MB, free: 2.34 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002739/0.1269, allocations: 1.151 MB / 330.6 MB, free: 1.18 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001777/0.1271, allocations: 7.938 kB / 330.6 MB, free: 1.172 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002875/0.1275, allocations: 55.5 kB / 330.6 MB, free: 1.117 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001454/0.1276, allocations: 43.64 kB / 330.7 MB, free: 1.074 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006587/0.1283, allocations: 171.7 kB / 330.8 MB, free: 0.9062 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006401/0.129, allocations: 459.6 kB / 331.3 MB, free: 468 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000365/0.1293, allocations: 160.9 kB / 331.4 MB, free: 308 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009317/0.1303, allocations: 0.8383 MB / 332.3 MB, free: 15.46 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003547/0.1306, allocations: 251 kB / 332.5 MB, free: 15.21 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001239/0.1308, allocations: 44 kB / 332.6 MB, free: 15.17 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001154/0.1309, allocations: 40 kB / 332.6 MB, free: 15.13 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001988/0.1311, allocations: 147.5 kB / 332.7 MB, free: 14.99 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002595/0.1314, allocations: 218.8 kB / 333 MB, free: 14.77 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007645/0.1321, allocations: 0.9076 MB / 333.9 MB, free: 13.86 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.934e-06/0.1321, allocations: 4 kB / 333.9 MB, free: 13.86 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1322, allocations: 4 kB / 333.9 MB, free: 13.86 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.284e-05/0.1322, allocations: 0 / 333.9 MB, free: 13.86 MB / 286.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.001266/0.1334, allocations: 0.8684 MB / 334.7 MB, free: 12.92 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.1335, allocations: 12.02 kB / 334.8 MB, free: 12.91 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001269/0.1336, allocations: 48.47 kB / 334.8 MB, free: 12.86 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004666/0.1341, allocations: 351.4 kB / 335.1 MB, free: 12.48 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.722e-05/0.1342, allocations: 32.97 kB / 335.2 MB, free: 12.45 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.863e-05/0.1342, allocations: 28.38 kB / 335.2 MB, free: 12.42 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009816/0.1352, allocations: 498.1 kB / 335.7 MB, free: 11.93 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.1353, allocations: 0 / 335.7 MB, free: 11.93 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.6e-05/0.1353, allocations: 19.98 kB / 335.7 MB, free: 11.91 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.1354, allocations: 8 kB / 335.7 MB, free: 11.9 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000762/0.1361, allocations: 378.4 kB / 336.1 MB, free: 11.53 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001916/0.138, allocations: 1.128 MB / 337.2 MB, free: 10.35 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00111/0.1392, allocations: 435.5 kB / 337.6 MB, free: 9.918 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003888/0.1396, allocations: 181.3 kB / 337.8 MB, free: 9.738 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.576e-05/0.1396, allocations: 288 / 337.8 MB, free: 9.738 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007687/0.1404, allocations: 347.2 kB / 338.2 MB, free: 9.387 MB / 286.1 MB Notification: Performance of pre-optimization done (n=35): time 1.673e-06/0.1404, allocations: 0 / 338.2 MB, free: 9.387 MB / 286.1 MB Notification: Performance of matching and sorting (n=35): time 0.001558/0.142, allocations: 0.7198 MB / 338.9 MB, free: 8.648 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001034/0.1421, allocations: 118.8 kB / 339 MB, free: 8.508 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003654/0.1425, allocations: 306.4 kB / 339.3 MB, free: 8.203 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.566e-05/0.1426, allocations: 37.7 kB / 339.3 MB, free: 8.16 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001728/0.1427, allocations: 180.7 kB / 339.5 MB, free: 7.977 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001165/0.1429, allocations: 86.94 kB / 339.6 MB, free: 7.891 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003086/0.1432, allocations: 186 kB / 339.8 MB, free: 7.703 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.00018/0.1434, allocations: 346.7 kB / 340.1 MB, free: 7.355 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003796/0.1438, allocations: 184.7 kB / 340.3 MB, free: 7.176 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004177/0.1442, allocations: 236.5 kB / 340.5 MB, free: 6.93 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009068/0.1451, allocations: 0.5145 MB / 341 MB, free: 6.375 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.1451, allocations: 0 / 341 MB, free: 6.375 MB / 286.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001164/0.1463, allocations: 0.6449 MB / 341.7 MB, free: 5.711 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.438e-05/0.1464, allocations: 63.39 kB / 341.7 MB, free: 5.637 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.1464, allocations: 0 / 341.7 MB, free: 5.637 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.99e-05/0.1464, allocations: 4 kB / 341.7 MB, free: 5.633 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001469/0.1465, allocations: 63.84 kB / 341.8 MB, free: 5.57 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/0.1466, allocations: 7.938 kB / 341.8 MB, free: 5.562 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001975/0.1468, allocations: 35.86 kB / 341.8 MB, free: 5.527 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002725/0.147, allocations: 279.7 kB / 342.1 MB, free: 5.254 MB / 286.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.0003293/0.1474, allocations: 289.1 kB / 342.4 MB, free: 4.949 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.795e-05/0.1475, allocations: 31.62 kB / 342.4 MB, free: 4.918 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.02e-05/0.1476, allocations: 38.95 kB / 342.5 MB, free: 4.879 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/0.1476, allocations: 4 kB / 342.5 MB, free: 4.875 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.1476, allocations: 0 / 342.5 MB, free: 4.875 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.1476, allocations: 0 / 342.5 MB, free: 4.875 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005372/0.1481, allocations: 481.1 kB / 342.9 MB, free: 4.355 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.1482, allocations: 4 kB / 343 MB, free: 4.352 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000113/0.1483, allocations: 51.91 kB / 343 MB, free: 4.301 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.1483, allocations: 0 / 343 MB, free: 4.301 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.133e-05/0.1484, allocations: 47.97 kB / 343 MB, free: 4.254 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.689e-06/0.1484, allocations: 4 kB / 343.1 MB, free: 4.25 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.1484, allocations: 4 kB / 343.1 MB, free: 4.246 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00105/0.1494, allocations: 0.6053 MB / 343.7 MB, free: 3.609 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002719/0.1497, allocations: 200.6 kB / 343.9 MB, free: 3.395 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001025/0.1498, allocations: 16 kB / 343.9 MB, free: 3.379 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001409/0.15, allocations: 19.92 kB / 343.9 MB, free: 3.359 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002449/0.1502, allocations: 87.91 kB / 344 MB, free: 3.273 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002762/0.1505, allocations: 283.7 kB / 344.3 MB, free: 2.996 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002241/0.1508, allocations: 213.9 kB / 344.5 MB, free: 2.789 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1508, allocations: 0 / 344.5 MB, free: 2.789 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004465/0.1512, allocations: 91.84 kB / 344.6 MB, free: 2.699 MB / 286.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.0002298/0.1515, allocations: 141.8 kB / 344.7 MB, free: 2.551 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001183/0.1527, allocations: 0.6039 MB / 345.3 MB, free: 1.922 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.1527, allocations: 0 / 345.3 MB, free: 1.922 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005446/0.1532, allocations: 354.5 kB / 345.6 MB, free: 1.551 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001308/0.1545, allocations: 329.2 kB / 346 MB, free: 1.23 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001491/0.156, allocations: 0.7196 MB / 346.7 MB, free: 492 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005553/0.1566, allocations: 0.8033 MB / 347.5 MB, free: 15.65 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.001502/0.1581, allocations: 0.7587 MB / 348.2 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007052/0.1588, allocations: 262.8 kB / 348.5 MB, free: 14.63 MB / 302.1 MB Notification: Performance of SimCode: time 7.91e-07/0.1588, allocations: 0 / 348.5 MB, free: 14.63 MB / 302.1 MB Notification: Performance of Templates: time 0.01844/0.1773, allocations: 10.92 MB / 359.4 MB, free: 3.492 MB / 302.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches