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.001243/0.001243, allocations: 94.09 kB / 17.3 MB, free: 6.391 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.00134/0.00134, allocations: 173.1 kB / 18.2 MB, free: 5.551 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.058/2.058, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0004799/0.00048, allocations: 12 kB / 281.4 MB, free: 3.414 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1172, allocations: 47.58 MB / 329 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.002513/0.1198, allocations: 1.823 MB / 330.8 MB, free: 1.93 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00253/0.1224, allocations: 1.124 MB / 331.9 MB, free: 0.7969 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.953e-05/0.1225, allocations: 7.938 kB / 331.9 MB, free: 0.7891 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000185/0.1227, allocations: 31.77 kB / 331.9 MB, free: 0.7578 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001118/0.1228, allocations: 35.72 kB / 332 MB, free: 0.7227 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004713/0.1233, allocations: 151.9 kB / 332.1 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004346/0.1237, allocations: 419.6 kB / 332.5 MB, free: 168 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002817/0.124, allocations: 152.9 kB / 332.7 MB, free: 16 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008182/0.1249, allocations: 0.7953 MB / 333.5 MB, free: 15.21 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003032/0.1252, allocations: 211.1 kB / 333.7 MB, free: 15.01 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.153e-05/0.1252, allocations: 8 kB / 333.7 MB, free: 15 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.989e-05/0.1253, allocations: 12 kB / 333.7 MB, free: 14.99 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001715/0.1255, allocations: 115.5 kB / 333.8 MB, free: 14.88 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000244/0.1257, allocations: 204.5 kB / 334 MB, free: 14.67 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007683/0.1265, allocations: 0.88 MB / 334.9 MB, free: 13.79 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.1265, allocations: 0 / 334.9 MB, free: 13.79 MB / 286.1 MB Notification: Performance of FrontEnd: time 5.76e-06/0.1266, allocations: 4 kB / 334.9 MB, free: 13.79 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.825e-06/0.1266, allocations: 0 / 334.9 MB, free: 13.79 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.0012/0.1278, allocations: 0.7164 MB / 335.6 MB, free: 13 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.44e-05/0.1278, allocations: 16.03 kB / 335.6 MB, free: 12.99 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001372/0.128, allocations: 48.38 kB / 335.7 MB, free: 12.94 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005157/0.1285, allocations: 355.4 kB / 336 MB, free: 12.55 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.978e-05/0.1286, allocations: 24.97 kB / 336.1 MB, free: 12.53 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001042/0.1287, allocations: 40.31 kB / 336.1 MB, free: 12.49 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000911/0.1296, allocations: 498.1 kB / 336.6 MB, free: 12 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.419e-05/0.1296, allocations: 0 / 336.6 MB, free: 12 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.527e-05/0.1297, allocations: 20 kB / 336.6 MB, free: 11.98 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.175e-05/0.1297, allocations: 8 kB / 336.6 MB, free: 11.97 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007637/0.1305, allocations: 386.4 kB / 337 MB, free: 11.59 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001772/0.1323, allocations: 1.108 MB / 338.1 MB, free: 10.43 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001108/0.1334, allocations: 471.5 kB / 338.6 MB, free: 9.961 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003554/0.1338, allocations: 189.3 kB / 338.7 MB, free: 9.773 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.447e-05/0.1338, allocations: 4.281 kB / 338.7 MB, free: 9.77 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006371/0.1345, allocations: 347.2 kB / 339.1 MB, free: 9.418 MB / 286.1 MB Notification: Performance of pre-optimization done (n=35): time 1.834e-06/0.1345, allocations: 0 / 339.1 MB, free: 9.418 MB / 286.1 MB Notification: Performance of matching and sorting (n=35): time 0.001423/0.1359, allocations: 0.7461 MB / 339.8 MB, free: 8.652 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.254e-05/0.136, allocations: 114.8 kB / 339.9 MB, free: 8.516 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003191/0.1363, allocations: 306.4 kB / 340.2 MB, free: 8.211 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.619e-05/0.1364, allocations: 37.7 kB / 340.3 MB, free: 8.168 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001501/0.1366, allocations: 184.7 kB / 340.5 MB, free: 7.98 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001111/0.1367, allocations: 83 kB / 340.5 MB, free: 7.898 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001131/0.1368, allocations: 65.67 kB / 340.6 MB, free: 7.828 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.1369, allocations: 342.8 kB / 340.9 MB, free: 7.484 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004024/0.1373, allocations: 192.7 kB / 341.1 MB, free: 7.297 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004097/0.1378, allocations: 240.5 kB / 341.4 MB, free: 7.047 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008735/0.1387, allocations: 0.5262 MB / 341.9 MB, free: 6.48 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.1387, allocations: 0 / 341.9 MB, free: 6.48 MB / 286.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001141/0.1398, allocations: 0.6566 MB / 342.5 MB, free: 5.805 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.047e-05/0.1399, allocations: 59.41 kB / 342.6 MB, free: 5.734 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.1399, allocations: 0 / 342.6 MB, free: 5.734 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.977e-05/0.1399, allocations: 4 kB / 342.6 MB, free: 5.73 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001507/0.1401, allocations: 59.91 kB / 342.7 MB, free: 5.672 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.261e-05/0.1401, allocations: 7.922 kB / 342.7 MB, free: 5.664 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003477/0.1405, allocations: 59.83 kB / 342.7 MB, free: 5.605 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002683/0.1407, allocations: 283.6 kB / 343 MB, free: 5.328 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.0003704/0.1411, allocations: 281.1 kB / 343.3 MB, free: 5.031 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.57e-05/0.1412, allocations: 35.62 kB / 343.3 MB, free: 4.996 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.832e-05/0.1413, allocations: 42.95 kB / 343.4 MB, free: 4.953 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-06/0.1413, allocations: 3.984 kB / 343.4 MB, free: 4.949 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.676e-06/0.1413, allocations: 4 kB / 343.4 MB, free: 4.945 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.1413, allocations: 0 / 343.4 MB, free: 4.945 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005789/0.1419, allocations: 481.1 kB / 343.8 MB, free: 4.426 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.1419, allocations: 3.938 kB / 343.8 MB, free: 4.422 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001039/0.142, allocations: 55.91 kB / 343.9 MB, free: 4.367 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.142, allocations: 0 / 343.9 MB, free: 4.367 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.374e-05/0.1421, allocations: 47.97 kB / 343.9 MB, free: 4.32 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.1421, allocations: 0 / 343.9 MB, free: 4.32 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.1421, allocations: 0 / 343.9 MB, free: 4.32 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001082/0.1432, allocations: 0.6255 MB / 344.6 MB, free: 3.664 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003199/0.1435, allocations: 196.7 kB / 344.8 MB, free: 3.453 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.786e-05/0.1436, allocations: 16 kB / 344.8 MB, free: 3.438 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002408/0.1439, allocations: 43.88 kB / 344.8 MB, free: 3.395 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002628/0.1442, allocations: 87.91 kB / 344.9 MB, free: 3.309 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002785/0.1445, allocations: 279.7 kB / 345.2 MB, free: 3.035 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002244/0.1447, allocations: 205.9 kB / 345.4 MB, free: 2.836 MB / 286.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.1447, allocations: 0 / 345.4 MB, free: 2.836 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004379/0.1451, allocations: 103.8 kB / 345.5 MB, free: 2.734 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.000275/0.1454, allocations: 137.8 kB / 345.6 MB, free: 2.59 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001076/0.1465, allocations: 0.5729 MB / 346.2 MB, free: 1.992 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.1465, allocations: 0 / 346.2 MB, free: 1.992 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006347/0.1472, allocations: 362.5 kB / 346.5 MB, free: 1.613 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001416/0.1486, allocations: 296 kB / 346.8 MB, free: 1.324 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001468/0.1501, allocations: 0.8271 MB / 347.7 MB, free: 480 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003976/0.1505, allocations: 0.8033 MB / 348.5 MB, free: 15.64 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.00143/0.1519, allocations: 0.751 MB / 349.2 MB, free: 14.88 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007025/0.1526, allocations: 266.8 kB / 349.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1526, allocations: 0 / 349.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of Templates: time 0.01762/0.1703, allocations: 10.29 MB / 359.8 MB, free: 4.105 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