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.001591/0.001591, allocations: 107.8 kB / 17.16 MB, free: 6.328 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.001777/0.001777, allocations: 198.9 kB / 18.08 MB, free: 5.422 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.965/1.965, allocations: 222.9 MB / 241.8 MB, free: 15.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 55.83 kB / 300.6 MB, free: 6.352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.1291, allocations: 49.45 MB / 350.1 MB, free: 4.895 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.004564/0.1337, allocations: 2.186 MB / 352.2 MB, free: 2.691 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002871/0.1366, allocations: 1.103 MB / 353.3 MB, free: 1.582 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002652/0.1369, allocations: 4 kB / 353.4 MB, free: 1.578 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002709/0.1372, allocations: 39.7 kB / 353.4 MB, free: 1.539 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002086/0.1375, allocations: 35.7 kB / 353.4 MB, free: 1.504 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006416/0.1382, allocations: 151.9 kB / 353.6 MB, free: 1.355 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000507/0.1387, allocations: 419.6 kB / 354 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003203/0.139, allocations: 152.9 kB / 354.1 MB, free: 0.793 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001002/0.14, allocations: 0.8186 MB / 355 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003143/0.1403, allocations: 235.1 kB / 355.2 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000108/0.1405, allocations: 19.94 kB / 355.2 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.562e-05/0.1406, allocations: 16 kB / 355.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002068/0.1408, allocations: 123.5 kB / 355.3 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002689/0.1411, allocations: 198.7 kB / 355.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007779/0.1418, allocations: 0.7793 MB / 356.3 MB, free: 14.61 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.1419, allocations: 4 kB / 356.3 MB, free: 14.61 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.22e-07/0.1419, allocations: 4 kB / 356.3 MB, free: 14.6 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.052e-05/0.1419, allocations: 0 / 356.3 MB, free: 14.6 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.001424/0.1433, allocations: 0.8687 MB / 357.2 MB, free: 13.67 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.1434, allocations: 8.031 kB / 357.2 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001389/0.1435, allocations: 44.47 kB / 357.2 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004929/0.144, allocations: 355.3 kB / 357.6 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.696e-05/0.1441, allocations: 29.03 kB / 357.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.959e-05/0.1442, allocations: 28.38 kB / 357.6 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009739/0.1451, allocations: 498.1 kB / 358.1 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.1452, allocations: 3.938 kB / 358.1 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.98e-05/0.1453, allocations: 16 kB / 358.1 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.1453, allocations: 8 kB / 358.2 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008804/0.1462, allocations: 378.4 kB / 358.5 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00201/0.1482, allocations: 1.112 MB / 359.6 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001166/0.1494, allocations: 439.5 kB / 360.1 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003809/0.1498, allocations: 182.2 kB / 360.2 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.936e-05/0.1499, allocations: 8.219 kB / 360.3 MB, free: 10.49 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006671/0.1505, allocations: 347 kB / 360.6 MB, free: 10.14 MB / 302.1 MB Notification: Performance of pre-optimization done (n=35): time 2.485e-06/0.1506, allocations: 0 / 360.6 MB, free: 10.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.001585/0.1522, allocations: 0.7306 MB / 361.3 MB, free: 9.391 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.845e-05/0.1522, allocations: 114.8 kB / 361.4 MB, free: 9.254 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003689/0.1526, allocations: 302.5 kB / 361.7 MB, free: 8.953 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.65e-05/0.1527, allocations: 41.69 kB / 361.8 MB, free: 8.906 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001593/0.1529, allocations: 176.7 kB / 361.9 MB, free: 8.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001196/0.153, allocations: 86.98 kB / 362 MB, free: 8.645 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003293/0.1533, allocations: 182 kB / 362.2 MB, free: 8.461 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.1535, allocations: 342.8 kB / 362.5 MB, free: 8.117 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004314/0.1539, allocations: 184.8 kB / 362.7 MB, free: 7.938 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004476/0.1544, allocations: 236.5 kB / 363 MB, free: 7.695 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009121/0.1553, allocations: 0.5106 MB / 363.5 MB, free: 7.145 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/0.1553, allocations: 0 / 363.5 MB, free: 7.145 MB / 302.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001269/0.1566, allocations: 0.6518 MB / 364.1 MB, free: 6.477 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.799e-05/0.1567, allocations: 62.06 kB / 364.2 MB, free: 6.406 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.1567, allocations: 8 kB / 364.2 MB, free: 6.398 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.138e-05/0.1568, allocations: 0 / 364.2 MB, free: 6.398 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001686/0.1569, allocations: 55.91 kB / 364.2 MB, free: 6.344 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.449e-05/0.157, allocations: 7.984 kB / 364.2 MB, free: 6.336 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000384/0.1573, allocations: 59.69 kB / 364.3 MB, free: 6.277 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003286/0.1577, allocations: 283.7 kB / 364.6 MB, free: 6 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.0004583/0.1581, allocations: 285.1 kB / 364.9 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001022/0.1583, allocations: 27.72 kB / 364.9 MB, free: 5.672 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.646e-05/0.1584, allocations: 34.95 kB / 364.9 MB, free: 5.633 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.664e-06/0.1584, allocations: 8 kB / 364.9 MB, free: 5.625 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/0.1584, allocations: 0 / 364.9 MB, free: 5.625 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.1584, allocations: 0 / 364.9 MB, free: 5.625 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000693/0.1591, allocations: 489.1 kB / 365.4 MB, free: 5.098 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.816e-06/0.1591, allocations: 0 / 365.4 MB, free: 5.098 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001276/0.1592, allocations: 47.91 kB / 365.5 MB, free: 5.051 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.803e-06/0.1592, allocations: 4 kB / 365.5 MB, free: 5.047 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.273e-05/0.1593, allocations: 47.91 kB / 365.5 MB, free: 5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.931e-06/0.1593, allocations: 4 kB / 365.5 MB, free: 4.996 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.1594, allocations: 0 / 365.5 MB, free: 4.996 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001185/0.1605, allocations: 0.61 MB / 366.1 MB, free: 4.355 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000339/0.1609, allocations: 200.7 kB / 366.3 MB, free: 4.141 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001205/0.161, allocations: 12 kB / 366.3 MB, free: 4.129 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002667/0.1613, allocations: 39.84 kB / 366.4 MB, free: 4.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002515/0.1616, allocations: 87.91 kB / 366.5 MB, free: 4.004 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003252/0.1619, allocations: 279.7 kB / 366.7 MB, free: 3.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002427/0.1622, allocations: 209.8 kB / 366.9 MB, free: 3.527 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1622, allocations: 0 / 366.9 MB, free: 3.527 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005241/0.1627, allocations: 103.8 kB / 367 MB, free: 3.426 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.0002367/0.1629, allocations: 141.7 kB / 367.2 MB, free: 3.281 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001158/0.1641, allocations: 0.5572 MB / 367.7 MB, free: 2.699 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.479e-06/0.1641, allocations: 0 / 367.7 MB, free: 2.699 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005586/0.1647, allocations: 350.6 kB / 368.1 MB, free: 2.332 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001356/0.1661, allocations: 296.2 kB / 368.4 MB, free: 2.047 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001657/0.1677, allocations: 0.8672 MB / 369.2 MB, free: 1.148 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004707/0.1682, allocations: 0.815 MB / 370 MB, free: 312 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1977/0.3659, allocations: 354.2 kB / 370.4 MB, free: 24.72 MB / 302.1 MB Notification: Performance of SimCode: time 2.094e-06/0.366, allocations: 0.625 kB / 370.4 MB, free: 24.72 MB / 302.1 MB Notification: Performance of Templates: time 0.02637/0.3924, allocations: 8.276 MB / 378.7 MB, free: 22.93 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 -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