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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001486/0.001486, allocations: 115.5 kB / 18.45 MB, free: 4.602 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001547/0.001547, allocations: 192.3 kB / 21.4 MB, free: 1.664 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 225.6 MB / 249.8 MB, free: 3.66 MB / 190.1 MB " [Timeout remaining time 178] 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=5094,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=5094,variableFilter="time|FF.RS1.TD1.x|FF.RS2.TD1.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001486, allocations: 55.91 kB / 366.8 MB, free: 392 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1027, allocations: 52.14 MB / 419 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003496/0.1062, allocations: 2.139 MB / 421.1 MB, free: 9.992 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002589/0.1088, allocations: 1.123 MB / 422.2 MB, free: 8.863 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.994e-05/0.1089, allocations: 4 kB / 422.2 MB, free: 8.859 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000203/0.1091, allocations: 55.5 kB / 422.3 MB, free: 8.805 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001271/0.1093, allocations: 43.64 kB / 422.3 MB, free: 8.762 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004972/0.1098, allocations: 175.7 kB / 422.5 MB, free: 8.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000524/0.1103, allocations: 467.5 kB / 422.9 MB, free: 8.133 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002495/0.1105, allocations: 120.9 kB / 423.1 MB, free: 8.012 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000987/0.1115, allocations: 0.8344 MB / 423.9 MB, free: 7.176 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004088/0.1119, allocations: 271 kB / 424.2 MB, free: 6.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001169/0.112, allocations: 48 kB / 424.2 MB, free: 6.863 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001187/0.1122, allocations: 44 kB / 424.3 MB, free: 6.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002095/0.1124, allocations: 151.4 kB / 424.4 MB, free: 6.672 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002722/0.1126, allocations: 218.8 kB / 424.6 MB, free: 6.457 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009081/0.1135, allocations: 0.9264 MB / 425.5 MB, free: 5.527 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.197e-06/0.1136, allocations: 0 / 425.5 MB, free: 5.527 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1136, allocations: 0 / 425.5 MB, free: 5.527 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.626e-06/0.1136, allocations: 0 / 425.5 MB, free: 5.527 MB / 350.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.001371/0.1149, allocations: 0.872 MB / 426.4 MB, free: 4.594 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.275e-05/0.115, allocations: 12.03 kB / 426.4 MB, free: 4.582 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001374/0.1151, allocations: 56.59 kB / 426.5 MB, free: 4.527 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004808/0.1156, allocations: 351.6 kB / 426.8 MB, free: 4.148 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.151e-05/0.1156, allocations: 33.02 kB / 426.9 MB, free: 4.117 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9e-05/0.1157, allocations: 32.38 kB / 426.9 MB, free: 4.086 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009274/0.1166, allocations: 498 kB / 427.4 MB, free: 3.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.445e-05/0.1167, allocations: 0 / 427.4 MB, free: 3.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.745e-05/0.1167, allocations: 16 kB / 427.4 MB, free: 3.574 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.072e-05/0.1167, allocations: 8 kB / 427.4 MB, free: 3.566 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007928/0.1175, allocations: 378.4 kB / 427.8 MB, free: 3.199 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00196/0.1195, allocations: 1.113 MB / 428.9 MB, free: 2.031 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001122/0.1206, allocations: 419.5 kB / 429.3 MB, free: 1.613 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003835/0.121, allocations: 169.3 kB / 429.5 MB, free: 1.445 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.126e-05/0.1211, allocations: 4.281 kB / 429.5 MB, free: 1.441 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006826/0.1217, allocations: 347 kB / 429.8 MB, free: 1.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 2.074e-06/0.1218, allocations: 0 / 429.8 MB, free: 1.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.001634/0.1234, allocations: 0.7278 MB / 430.5 MB, free: 352 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.241e-05/0.1235, allocations: 118.8 kB / 430.6 MB, free: 208 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003745/0.1239, allocations: 302.5 kB / 430.9 MB, free: 15.9 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.228e-05/0.1239, allocations: 45.62 kB / 431 MB, free: 15.85 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001491/0.1241, allocations: 181 kB / 431.2 MB, free: 15.67 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001177/0.1242, allocations: 87.38 kB / 431.2 MB, free: 15.59 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002911/0.1245, allocations: 182 kB / 431.4 MB, free: 15.4 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.1247, allocations: 342.8 kB / 431.8 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004062/0.1251, allocations: 184.8 kB / 431.9 MB, free: 14.88 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004429/0.1255, allocations: 232.5 kB / 432.2 MB, free: 14.63 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009648/0.1265, allocations: 0.5322 MB / 432.7 MB, free: 14.06 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.245e-06/0.1265, allocations: 4 kB / 432.7 MB, free: 14.06 MB / 366.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001949/0.1284, allocations: 0.6372 MB / 433.3 MB, free: 13.4 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.857e-05/0.1285, allocations: 59.39 kB / 433.4 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/0.1285, allocations: 4 kB / 433.4 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.438e-05/0.1285, allocations: 4 kB / 433.4 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002406/0.1288, allocations: 55.91 kB / 433.5 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.333e-05/0.1288, allocations: 8.031 kB / 433.5 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003548/0.1291, allocations: 31.88 kB / 433.5 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004779/0.1296, allocations: 287.7 kB / 433.8 MB, free: 12.95 MB / 366.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.0005952/0.1302, allocations: 285.1 kB / 434.1 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001402/0.1304, allocations: 35.81 kB / 434.1 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001128/0.1305, allocations: 42.89 kB / 434.1 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.777e-06/0.1305, allocations: 4 kB / 434.1 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.1305, allocations: 0 / 434.1 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.068e-05/0.1305, allocations: 3.984 kB / 434.1 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009874/0.1315, allocations: 477.2 kB / 434.6 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.1315, allocations: 0 / 434.6 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001934/0.1317, allocations: 51.91 kB / 434.7 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.349e-05/0.1317, allocations: 7.984 kB / 434.7 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001243/0.1318, allocations: 39.98 kB / 434.7 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.324e-06/0.1318, allocations: 8 kB / 434.7 MB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.1318, allocations: 0 / 434.7 MB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00198/0.1338, allocations: 0.6131 MB / 435.3 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004553/0.1343, allocations: 196.8 kB / 435.5 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001591/0.1344, allocations: 16 kB / 435.5 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002802/0.1347, allocations: 15.98 kB / 435.5 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003532/0.1351, allocations: 95.89 kB / 435.6 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004384/0.1355, allocations: 275.7 kB / 435.9 MB, free: 10.69 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003602/0.1359, allocations: 205.9 kB / 436.1 MB, free: 10.48 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1359, allocations: 3.938 kB / 436.1 MB, free: 10.48 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007527/0.1366, allocations: 99.89 kB / 436.2 MB, free: 10.38 MB / 366.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.0003232/0.1369, allocations: 146.3 kB / 436.4 MB, free: 10.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001914/0.1388, allocations: 0.5396 MB / 436.9 MB, free: 9.668 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.1388, allocations: 0 / 436.9 MB, free: 9.668 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009215/0.1398, allocations: 346.5 kB / 437.2 MB, free: 9.305 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00217/0.1419, allocations: 323.3 kB / 437.6 MB, free: 9.012 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00238/0.1443, allocations: 0.7636 MB / 438.3 MB, free: 8.215 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000712/0.145, allocations: 0.7994 MB / 439.1 MB, free: 7.391 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001929/0.147, allocations: 366.5 kB / 439.5 MB, free: 7.031 MB / 366.1 MB Notification: Performance of SimCode: time 7.11e-07/0.147, allocations: 0 / 439.5 MB, free: 7.031 MB / 366.1 MB Notification: Performance of Templates: time 0.197/0.3439, allocations: 8.328 MB / 447.8 MB, free: 29.66 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/FlipFlop/FlipFlop.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.797316214069724]