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.001453/0.001453, allocations: 117.4 kB / 17.28 MB, free: 6.219 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.001588/0.001588, allocations: 193.3 kB / 18.19 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.138/2.138, allocations: 205.1 MB / 224.1 MB, free: 12.43 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.001235/0.001235, allocations: 55.92 kB / 280.2 MB, free: 3.512 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.131/0.1322, allocations: 46.62 MB / 326.8 MB, free: 4.812 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.0041/0.1364, allocations: 2.185 MB / 329 MB, free: 2.609 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002736/0.1392, allocations: 1.135 MB / 330.1 MB, free: 1.465 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001561/0.1394, allocations: 0 / 330.1 MB, free: 1.465 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002653/0.1397, allocations: 39.7 kB / 330.1 MB, free: 1.426 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001164/0.1398, allocations: 31.78 kB / 330.2 MB, free: 1.395 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006464/0.1404, allocations: 155.8 kB / 330.3 MB, free: 1.242 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005381/0.141, allocations: 463.6 kB / 330.8 MB, free: 0.7891 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003428/0.1413, allocations: 160.9 kB / 330.9 MB, free: 0.6328 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009452/0.1423, allocations: 0.8461 MB / 331.8 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004074/0.1427, allocations: 263 kB / 332 MB, free: 15.53 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001106/0.1428, allocations: 44 kB / 332.1 MB, free: 15.48 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.163e-05/0.1429, allocations: 40 kB / 332.1 MB, free: 15.45 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002406/0.1432, allocations: 155.4 kB / 332.3 MB, free: 15.29 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002813/0.1435, allocations: 226.8 kB / 332.5 MB, free: 15.07 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009467/0.1444, allocations: 0.9115 MB / 333.4 MB, free: 14.16 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.1444, allocations: 0 / 333.4 MB, free: 14.16 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1445, allocations: 0 / 333.4 MB, free: 14.16 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.031e-05/0.1445, allocations: 0 / 333.4 MB, free: 14.16 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.001468/0.1459, allocations: 0.8684 MB / 334.3 MB, free: 13.22 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.306e-05/0.146, allocations: 8.031 kB / 334.3 MB, free: 13.21 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001396/0.1461, allocations: 44.47 kB / 334.3 MB, free: 13.17 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005234/0.1467, allocations: 351.4 kB / 334.7 MB, free: 12.79 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.546e-05/0.1467, allocations: 33.03 kB / 334.7 MB, free: 12.75 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.836e-05/0.1468, allocations: 32.38 kB / 334.7 MB, free: 12.72 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001013/0.1478, allocations: 494 kB / 335.2 MB, free: 12.23 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.842e-05/0.1479, allocations: 0 / 335.2 MB, free: 12.23 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001025/0.148, allocations: 16 kB / 335.2 MB, free: 12.22 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.916e-05/0.148, allocations: 11.94 kB / 335.2 MB, free: 12.21 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000779/0.1488, allocations: 378.4 kB / 335.6 MB, free: 11.84 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001876/0.1507, allocations: 1.108 MB / 336.7 MB, free: 10.68 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001121/0.1518, allocations: 439.5 kB / 337.1 MB, free: 10.24 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003731/0.1522, allocations: 177.3 kB / 337.3 MB, free: 10.06 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.415e-05/0.1523, allocations: 4.281 kB / 337.3 MB, free: 10.06 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007425/0.1531, allocations: 347.2 kB / 337.7 MB, free: 9.707 MB / 286.1 MB Notification: Performance of pre-optimization done (n=35): time 2.515e-06/0.1531, allocations: 0 / 337.7 MB, free: 9.707 MB / 286.1 MB Notification: Performance of matching and sorting (n=35): time 0.00157/0.1547, allocations: 0.7315 MB / 338.4 MB, free: 8.957 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.21e-05/0.1548, allocations: 110.8 kB / 338.5 MB, free: 8.824 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003673/0.1551, allocations: 306.4 kB / 338.8 MB, free: 8.52 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 7.719e-05/0.1552, allocations: 41.7 kB / 338.8 MB, free: 8.473 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001694/0.1554, allocations: 180.7 kB / 339 MB, free: 8.289 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001233/0.1555, allocations: 82.94 kB / 339.1 MB, free: 8.207 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002998/0.1558, allocations: 182 kB / 339.3 MB, free: 8.023 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001915/0.156, allocations: 346.8 kB / 339.6 MB, free: 7.676 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003776/0.1564, allocations: 184.8 kB / 339.8 MB, free: 7.496 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004223/0.1569, allocations: 232.5 kB / 340 MB, free: 7.254 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008603/0.1577, allocations: 0.5262 MB / 340.5 MB, free: 6.688 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-06/0.1577, allocations: 0 / 340.5 MB, free: 6.688 MB / 286.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001232/0.159, allocations: 0.6332 MB / 341.2 MB, free: 6.035 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.042e-05/0.1591, allocations: 67.39 kB / 341.2 MB, free: 5.957 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.216e-06/0.1591, allocations: 0 / 341.2 MB, free: 5.957 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.533e-05/0.1591, allocations: 4 kB / 341.2 MB, free: 5.953 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001554/0.1593, allocations: 67.88 kB / 341.3 MB, free: 5.887 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.111e-05/0.1593, allocations: 4 kB / 341.3 MB, free: 5.883 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003363/0.1596, allocations: 51.66 kB / 341.4 MB, free: 5.832 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002992/0.1599, allocations: 287.7 kB / 341.6 MB, free: 5.551 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.0004395/0.1604, allocations: 285.1 kB / 341.9 MB, free: 5.25 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.974e-05/0.1605, allocations: 31.7 kB / 342 MB, free: 5.219 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.452e-05/0.1606, allocations: 38.97 kB / 342 MB, free: 5.18 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.1606, allocations: 0 / 342 MB, free: 5.18 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.768e-06/0.1606, allocations: 7.984 kB / 342 MB, free: 5.172 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.1606, allocations: 0 / 342 MB, free: 5.172 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006158/0.1612, allocations: 485.1 kB / 342.5 MB, free: 4.648 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.1612, allocations: 0 / 342.5 MB, free: 4.648 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001162/0.1614, allocations: 51.91 kB / 342.5 MB, free: 4.598 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.1614, allocations: 0 / 342.5 MB, free: 4.598 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.745e-05/0.1614, allocations: 51.97 kB / 342.6 MB, free: 4.547 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.1615, allocations: 4 kB / 342.6 MB, free: 4.543 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1615, allocations: 3.938 kB / 342.6 MB, free: 4.539 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009967/0.1625, allocations: 0.613 MB / 343.2 MB, free: 3.895 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000264/0.1627, allocations: 196.6 kB / 343.4 MB, free: 3.684 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000103/0.1629, allocations: 12 kB / 343.4 MB, free: 3.672 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002236/0.1631, allocations: 43.95 kB / 343.4 MB, free: 3.629 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002371/0.1633, allocations: 87.92 kB / 343.5 MB, free: 3.543 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002993/0.1636, allocations: 279.7 kB / 343.8 MB, free: 3.27 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002231/0.1639, allocations: 205.9 kB / 344 MB, free: 3.07 MB / 286.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.1639, allocations: 0 / 344 MB, free: 3.07 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004733/0.1644, allocations: 103.8 kB / 344.1 MB, free: 2.969 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.0002519/0.1646, allocations: 141.8 kB / 344.2 MB, free: 2.82 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001192/0.1658, allocations: 0.5959 MB / 344.8 MB, free: 2.199 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.1658, allocations: 0 / 344.8 MB, free: 2.199 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005802/0.1664, allocations: 354.6 kB / 345.2 MB, free: 1.828 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001395/0.1678, allocations: 333.5 kB / 345.5 MB, free: 1.504 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001757/0.1696, allocations: 0.8251 MB / 346.3 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005508/0.1702, allocations: 0.8111 MB / 347.2 MB, free: 15.81 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.001567/0.1717, allocations: 0.7548 MB / 347.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006809/0.1724, allocations: 262.8 kB / 348.2 MB, free: 14.79 MB / 302.1 MB Notification: Performance of SimCode: time 1.082e-06/0.1724, allocations: 0 / 348.2 MB, free: 14.79 MB / 302.1 MB Notification: Performance of Templates: time 0.01846/0.1909, allocations: 10.62 MB / 358.8 MB, free: 3.945 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","../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches