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.001428/0.001428, allocations: 115.5 kB / 17.69 MB, free: 5.422 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.001673/0.001673, allocations: 192 kB / 18.63 MB, free: 4.492 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.381/1.381, allocations: 222.9 MB / 242.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001024/0.001024, allocations: 54.62 kB / 302.1 MB, free: 5.172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1175, allocations: 49.44 MB / 351.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.005022/0.1226, allocations: 2.125 MB / 353.6 MB, free: 1.57 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003768/0.1264, allocations: 1.126 MB / 354.8 MB, free: 448 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001783/0.1266, allocations: 4 kB / 354.8 MB, free: 444 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002768/0.1269, allocations: 47.52 kB / 354.8 MB, free: 396 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000183/0.1271, allocations: 51.56 kB / 354.9 MB, free: 344 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007862/0.1279, allocations: 167.7 kB / 355 MB, free: 176 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008131/0.1288, allocations: 471.6 kB / 355.5 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004311/0.1292, allocations: 148.9 kB / 355.6 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001438/0.1307, allocations: 0.8344 MB / 356.5 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005756/0.1313, allocations: 247.1 kB / 356.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001921/0.1315, allocations: 44 kB / 356.7 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001664/0.1317, allocations: 48 kB / 356.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003067/0.132, allocations: 151.5 kB / 356.9 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004734/0.1325, allocations: 218.8 kB / 357.2 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001247/0.1338, allocations: 0.9267 MB / 358.1 MB, free: 13.1 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.1338, allocations: 0 / 358.1 MB, free: 13.1 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.215e-06/0.1338, allocations: 0 / 358.1 MB, free: 13.1 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.141e-05/0.1338, allocations: 0 / 358.1 MB, free: 13.1 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.002222/0.1361, allocations: 0.8722 MB / 359 MB, free: 12.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.1361, allocations: 11.89 kB / 359 MB, free: 12.15 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002208/0.1364, allocations: 48.47 kB / 359 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008599/0.1372, allocations: 359.3 kB / 359.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.474e-05/0.1373, allocations: 25.03 kB / 359.4 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001661/0.1375, allocations: 36.38 kB / 359.4 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001602/0.1391, allocations: 494 kB / 359.9 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.753e-05/0.1392, allocations: 0 / 359.9 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000102/0.1393, allocations: 12 kB / 359.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.429e-05/0.1393, allocations: 8 kB / 359.9 MB, free: 11.15 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001466/0.1408, allocations: 382.4 kB / 360.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003451/0.1443, allocations: 1.112 MB / 361.4 MB, free: 9.605 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001845/0.1461, allocations: 439.5 kB / 361.8 MB, free: 9.168 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006246/0.1468, allocations: 181.3 kB / 362 MB, free: 8.988 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.98e-05/0.1469, allocations: 4.281 kB / 362 MB, free: 8.984 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001047/0.148, allocations: 343.2 kB / 362.4 MB, free: 8.637 MB / 302.1 MB Notification: Performance of pre-optimization done (n=35): time 3.176e-06/0.148, allocations: 0 / 362.4 MB, free: 8.637 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.002516/0.1505, allocations: 0.7314 MB / 363.1 MB, free: 7.887 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001084/0.1506, allocations: 110.8 kB / 363.2 MB, free: 7.754 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005673/0.1512, allocations: 302.5 kB / 363.5 MB, free: 7.453 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001189/0.1514, allocations: 45.69 kB / 363.5 MB, free: 7.402 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002228/0.1516, allocations: 176.7 kB / 363.7 MB, free: 7.227 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001849/0.1518, allocations: 82.98 kB / 363.8 MB, free: 7.145 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004638/0.1523, allocations: 182 kB / 364 MB, free: 6.961 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001968/0.1525, allocations: 342.8 kB / 364.3 MB, free: 6.617 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006803/0.1532, allocations: 188.8 kB / 364.5 MB, free: 6.434 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007342/0.1539, allocations: 232.5 kB / 364.7 MB, free: 6.195 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001519/0.1555, allocations: 0.5184 MB / 365.2 MB, free: 5.637 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.885e-06/0.1555, allocations: 0 / 365.2 MB, free: 5.637 MB / 302.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.002032/0.1575, allocations: 0.6434 MB / 365.9 MB, free: 4.977 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.405e-05/0.1576, allocations: 67.39 kB / 365.9 MB, free: 4.898 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.1577, allocations: 0 / 365.9 MB, free: 4.898 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.368e-05/0.1577, allocations: 4 kB / 365.9 MB, free: 4.895 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002632/0.158, allocations: 55.91 kB / 366 MB, free: 4.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.587e-05/0.158, allocations: 4.016 kB / 366 MB, free: 4.836 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003571/0.1584, allocations: 31.84 kB / 366 MB, free: 4.805 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004551/0.1589, allocations: 291.7 kB / 366.3 MB, free: 4.52 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.0006086/0.1595, allocations: 285.1 kB / 366.6 MB, free: 4.219 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001558/0.1597, allocations: 35.62 kB / 366.6 MB, free: 4.184 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001307/0.1598, allocations: 38.95 kB / 366.7 MB, free: 4.141 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.1598, allocations: 3.938 kB / 366.7 MB, free: 4.137 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/0.1599, allocations: 4 kB / 366.7 MB, free: 4.133 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.267e-06/0.1599, allocations: 3.984 kB / 366.7 MB, free: 4.129 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009462/0.1608, allocations: 485.1 kB / 367.2 MB, free: 3.605 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.1609, allocations: 0 / 367.2 MB, free: 3.605 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001923/0.1611, allocations: 51.91 kB / 367.2 MB, free: 3.555 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.206e-06/0.1611, allocations: 0 / 367.2 MB, free: 3.555 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001315/0.1612, allocations: 51.91 kB / 367.3 MB, free: 3.504 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/0.1613, allocations: 0 / 367.3 MB, free: 3.504 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.1613, allocations: 4 kB / 367.3 MB, free: 3.5 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001879/0.1632, allocations: 0.6053 MB / 367.9 MB, free: 2.863 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005184/0.1637, allocations: 192.7 kB / 368.1 MB, free: 2.656 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001766/0.1639, allocations: 12 kB / 368.1 MB, free: 2.645 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002926/0.1642, allocations: 19.98 kB / 368.1 MB, free: 2.625 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003646/0.1646, allocations: 91.91 kB / 368.2 MB, free: 2.535 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004663/0.1651, allocations: 283.7 kB / 368.5 MB, free: 2.258 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003358/0.1654, allocations: 201.9 kB / 368.6 MB, free: 2.062 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.1e-07/0.1654, allocations: 0 / 368.6 MB, free: 2.062 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000748/0.1662, allocations: 107.7 kB / 368.8 MB, free: 1.957 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.0003024/0.1665, allocations: 150.2 kB / 368.9 MB, free: 1.801 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001826/0.1684, allocations: 0.557 MB / 369.5 MB, free: 1.219 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.1684, allocations: 0 / 369.5 MB, free: 1.219 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009444/0.1693, allocations: 358.5 kB / 369.8 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002124/0.1715, allocations: 328.5 kB / 370.1 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1438/0.3153, allocations: 0.6968 MB / 370.8 MB, free: 25.2 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00028/0.3156, allocations: 0.8067 MB / 371.6 MB, free: 24.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.001341/0.317, allocations: 0.7476 MB / 372.4 MB, free: 24.04 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006426/0.3176, allocations: 268.3 kB / 372.6 MB, free: 23.88 MB / 302.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3176, allocations: 0.9062 kB / 372.6 MB, free: 23.88 MB / 302.1 MB Notification: Performance of Templates: time 0.01537/0.333, allocations: 10.88 MB / 383.5 MB, free: 20.98 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 gbode -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