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.001559/0.001559, allocations: 107.2 kB / 18.34 MB, free: 4.832 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.00158/0.00158, allocations: 192.1 kB / 19.28 MB, free: 3.898 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.513/1.513, allocations: 205.1 MB / 225.2 MB, free: 12.26 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.001325/0.001325, allocations: 55.91 kB / 282.1 MB, free: 2.445 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1154, allocations: 46.61 MB / 328.7 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.00427/0.1197, allocations: 2.147 MB / 330.9 MB, free: 1.594 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002817/0.1226, allocations: 1.159 MB / 332 MB, free: 436 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002742/0.1229, allocations: 4 kB / 332 MB, free: 432 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002936/0.1233, allocations: 51.56 kB / 332.1 MB, free: 380 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002455/0.1235, allocations: 39.59 kB / 332.1 MB, free: 340 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007462/0.1243, allocations: 171.8 kB / 332.3 MB, free: 168 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007651/0.1251, allocations: 463.6 kB / 332.7 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003573/0.1254, allocations: 160.9 kB / 332.9 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001001/0.1264, allocations: 0.8382 MB / 333.7 MB, free: 14.71 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004882/0.1269, allocations: 251 kB / 334 MB, free: 14.47 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001615/0.1271, allocations: 40 kB / 334 MB, free: 14.43 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000118/0.1272, allocations: 44 kB / 334 MB, free: 14.39 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002139/0.1275, allocations: 151.5 kB / 334.2 MB, free: 14.24 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003117/0.1278, allocations: 218.8 kB / 334.4 MB, free: 14.02 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008878/0.1287, allocations: 0.9267 MB / 335.3 MB, free: 13.09 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.1287, allocations: 0 / 335.3 MB, free: 13.09 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.1287, allocations: 0 / 335.3 MB, free: 13.09 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.038e-05/0.1287, allocations: 0 / 335.3 MB, free: 13.09 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.001913/0.1307, allocations: 0.8723 MB / 336.2 MB, free: 12.16 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.346e-05/0.1307, allocations: 8.031 kB / 336.2 MB, free: 12.15 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001914/0.1309, allocations: 52.45 kB / 336.3 MB, free: 12.1 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008538/0.1318, allocations: 351.4 kB / 336.6 MB, free: 11.71 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.804e-05/0.1319, allocations: 25.03 kB / 336.6 MB, free: 11.69 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001137/0.132, allocations: 36.38 kB / 336.7 MB, free: 11.66 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00108/0.1331, allocations: 490.1 kB / 337.1 MB, free: 11.17 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.073e-05/0.1331, allocations: 3.984 kB / 337.2 MB, free: 11.17 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.576e-05/0.1332, allocations: 12 kB / 337.2 MB, free: 11.16 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.517e-05/0.1332, allocations: 8 kB / 337.2 MB, free: 11.15 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007448/0.134, allocations: 378.3 kB / 337.5 MB, free: 10.78 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002063/0.136, allocations: 1.116 MB / 338.7 MB, free: 9.609 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001023/0.1371, allocations: 435.5 kB / 339.1 MB, free: 9.176 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00033/0.1374, allocations: 177.3 kB / 339.3 MB, free: 9 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.935e-05/0.1375, allocations: 12.27 kB / 339.3 MB, free: 8.988 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006345/0.1381, allocations: 343.1 kB / 339.6 MB, free: 8.641 MB / 286.1 MB Notification: Performance of pre-optimization done (n=35): time 1.994e-06/0.1382, allocations: 0 / 339.6 MB, free: 8.641 MB / 286.1 MB Notification: Performance of matching and sorting (n=35): time 0.001423/0.1396, allocations: 0.7237 MB / 340.3 MB, free: 7.898 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.242e-05/0.1397, allocations: 118.8 kB / 340.4 MB, free: 7.758 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003277/0.14, allocations: 302.4 kB / 340.7 MB, free: 7.457 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.368e-05/0.1401, allocations: 45.64 kB / 340.8 MB, free: 7.406 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001476/0.1402, allocations: 184.6 kB / 341 MB, free: 7.219 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001067/0.1404, allocations: 71.08 kB / 341 MB, free: 7.148 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003169/0.1407, allocations: 190 kB / 341.2 MB, free: 6.957 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001798/0.1409, allocations: 338.7 kB / 341.5 MB, free: 6.617 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003744/0.1413, allocations: 192.7 kB / 341.7 MB, free: 6.43 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004063/0.1417, allocations: 232.5 kB / 342 MB, free: 6.188 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008606/0.1425, allocations: 0.5184 MB / 342.5 MB, free: 5.629 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.1426, allocations: 4 kB / 342.5 MB, free: 5.625 MB / 286.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001066/0.1436, allocations: 0.6448 MB / 343.1 MB, free: 4.961 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.382e-05/0.1437, allocations: 63.41 kB / 343.2 MB, free: 4.887 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.1437, allocations: 4 kB / 343.2 MB, free: 4.883 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.188e-05/0.1437, allocations: 4 kB / 343.2 MB, free: 4.879 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001575/0.1439, allocations: 63.89 kB / 343.3 MB, free: 4.816 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.074e-05/0.1439, allocations: 4 kB / 343.3 MB, free: 4.812 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002034/0.1441, allocations: 31.86 kB / 343.3 MB, free: 4.781 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002864/0.1444, allocations: 283.7 kB / 343.6 MB, free: 4.504 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.0003517/0.1448, allocations: 285.1 kB / 343.9 MB, free: 4.203 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.416e-05/0.1449, allocations: 31.62 kB / 343.9 MB, free: 4.172 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.329e-05/0.145, allocations: 38.95 kB / 343.9 MB, free: 4.133 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.145, allocations: 8 kB / 343.9 MB, free: 4.125 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.145, allocations: 0 / 343.9 MB, free: 4.125 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/0.145, allocations: 3.984 kB / 343.9 MB, free: 4.121 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000545/0.1455, allocations: 485.1 kB / 344.4 MB, free: 3.598 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.1456, allocations: 7.938 kB / 344.4 MB, free: 3.59 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001004/0.1457, allocations: 47.97 kB / 344.5 MB, free: 3.543 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.816e-06/0.1457, allocations: 0 / 344.5 MB, free: 3.543 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.411e-05/0.1458, allocations: 47.97 kB / 344.5 MB, free: 3.496 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.1458, allocations: 0 / 344.5 MB, free: 3.496 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1458, allocations: 0 / 344.5 MB, free: 3.496 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009982/0.1468, allocations: 0.613 MB / 345.1 MB, free: 2.852 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003453/0.1471, allocations: 196.6 kB / 345.3 MB, free: 2.641 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.637e-05/0.1472, allocations: 20 kB / 345.3 MB, free: 2.621 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001365/0.1474, allocations: 12 kB / 345.3 MB, free: 2.609 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002611/0.1476, allocations: 87.91 kB / 345.4 MB, free: 2.523 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002941/0.1479, allocations: 279.7 kB / 345.7 MB, free: 2.25 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001999/0.1482, allocations: 213.9 kB / 345.9 MB, free: 2.043 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.335e-06/0.1482, allocations: 0 / 345.9 MB, free: 2.043 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004356/0.1486, allocations: 99.78 kB / 346 MB, free: 1.945 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.0002816/0.1489, allocations: 141.8 kB / 346.1 MB, free: 1.797 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001068/0.15, allocations: 0.5569 MB / 346.7 MB, free: 1.215 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.177e-06/0.15, allocations: 0 / 346.7 MB, free: 1.215 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005177/0.1505, allocations: 358.5 kB / 347.1 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001191/0.1517, allocations: 333 kB / 347.4 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001307/0.1531, allocations: 0.7039 MB / 348.1 MB, free: 15.78 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003933/0.1535, allocations: 0.8072 MB / 348.9 MB, free: 14.95 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.001385/0.1549, allocations: 0.751 MB / 349.6 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007042/0.1556, allocations: 262.8 kB / 349.9 MB, free: 13.94 MB / 302.1 MB Notification: Performance of SimCode: time 1.092e-06/0.1556, allocations: 0 / 349.9 MB, free: 13.94 MB / 302.1 MB Notification: Performance of Templates: time 0.01538/0.171, allocations: 10.88 MB / 360.8 MB, free: 2.832 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/FlipFlop/FlipFlop.csv","/var/lib/jenkins1/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