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.001867/0.001867, allocations: 115.8 kB / 18.4 MB, free: 4.66 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.002235/0.002235, allocations: 189.3 kB / 21.35 MB, free: 1.723 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.432/1.432, allocations: 222.9 MB / 247.1 MB, free: 4.199 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.001685/0.001685, allocations: 43.92 kB / 358.7 MB, free: 8.324 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1052, allocations: 49.45 MB / 408.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003771/0.109, allocations: 2.133 MB / 410.2 MB, free: 4.691 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002896/0.112, allocations: 1.119 MB / 411.4 MB, free: 3.566 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003177/0.1123, allocations: 4 kB / 411.4 MB, free: 3.562 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002928/0.1126, allocations: 47.58 kB / 411.4 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002112/0.1129, allocations: 43.58 kB / 411.4 MB, free: 3.473 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006677/0.1136, allocations: 175.8 kB / 411.6 MB, free: 3.301 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007208/0.1143, allocations: 471.5 kB / 412.1 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003428/0.1147, allocations: 160.9 kB / 412.2 MB, free: 2.68 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001005/0.1157, allocations: 0.8305 MB / 413.1 MB, free: 1.848 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004149/0.1161, allocations: 251 kB / 413.3 MB, free: 1.602 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001392/0.1163, allocations: 40 kB / 413.3 MB, free: 1.562 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001194/0.1164, allocations: 44 kB / 413.4 MB, free: 1.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002121/0.1166, allocations: 151.5 kB / 413.5 MB, free: 1.371 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002915/0.1169, allocations: 214.8 kB / 413.7 MB, free: 1.16 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001115/0.118, allocations: 0.938 MB / 414.7 MB, free: 224 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.118, allocations: 0 / 414.7 MB, free: 224 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.118, allocations: 0 / 414.7 MB, free: 224 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.7e-05/0.1181, allocations: 0 / 414.7 MB, free: 224 kB / 334.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.001642/0.1197, allocations: 0.88 MB / 415.6 MB, free: 15.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.1198, allocations: 12.03 kB / 415.6 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001458/0.1199, allocations: 48.66 kB / 415.6 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005199/0.1204, allocations: 355.5 kB / 416 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.389e-05/0.1205, allocations: 29.02 kB / 416 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.472e-05/0.1206, allocations: 36.38 kB / 416 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001014/0.1216, allocations: 494.1 kB / 416.5 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.1216, allocations: 0 / 416.5 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.561e-05/0.1217, allocations: 16 kB / 416.5 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/0.1217, allocations: 8 kB / 416.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008394/0.1226, allocations: 378.3 kB / 416.9 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00204/0.1246, allocations: 1.117 MB / 418 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001186/0.1258, allocations: 439.5 kB / 418.5 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000385/0.1262, allocations: 177.3 kB / 418.6 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.321e-05/0.1263, allocations: 288 / 418.6 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006958/0.127, allocations: 351 kB / 419 MB, free: 11.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 2.134e-06/0.127, allocations: 0 / 419 MB, free: 11.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.001597/0.1286, allocations: 0.724 MB / 419.7 MB, free: 11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.947e-05/0.1287, allocations: 110.8 kB / 419.8 MB, free: 10.87 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003724/0.1291, allocations: 310.5 kB / 420.1 MB, free: 10.56 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.544e-05/0.1292, allocations: 37.7 kB / 420.1 MB, free: 10.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001832/0.1294, allocations: 184.9 kB / 420.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001309/0.1295, allocations: 91.31 kB / 420.4 MB, free: 10.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003101/0.1298, allocations: 186 kB / 420.6 MB, free: 10.06 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001688/0.13, allocations: 346.7 kB / 420.9 MB, free: 9.711 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004124/0.1304, allocations: 184.8 kB / 421.1 MB, free: 9.531 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004644/0.1309, allocations: 236.5 kB / 421.3 MB, free: 9.281 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001107/0.132, allocations: 0.5177 MB / 421.9 MB, free: 8.727 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.1321, allocations: 0 / 421.9 MB, free: 8.727 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001322/0.1334, allocations: 0.6411 MB / 422.5 MB, free: 8.066 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.317e-05/0.1335, allocations: 67.39 kB / 422.6 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.1335, allocations: 4 kB / 422.6 MB, free: 7.984 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.1335, allocations: 4.031 kB / 422.6 MB, free: 7.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001657/0.1337, allocations: 59.91 kB / 422.6 MB, free: 7.922 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.036e-05/0.1337, allocations: 4 kB / 422.6 MB, free: 7.918 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002029/0.1339, allocations: 23.94 kB / 422.7 MB, free: 7.895 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002873/0.1342, allocations: 287.6 kB / 422.9 MB, free: 7.613 MB / 350.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.0003801/0.1346, allocations: 297 kB / 423.2 MB, free: 7.301 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.678e-05/0.1347, allocations: 31.81 kB / 423.3 MB, free: 7.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.099e-05/0.1348, allocations: 38.95 kB / 423.3 MB, free: 7.227 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.1348, allocations: 7.938 kB / 423.3 MB, free: 7.219 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.1348, allocations: 0 / 423.3 MB, free: 7.219 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.1348, allocations: 0 / 423.3 MB, free: 7.219 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007253/0.1355, allocations: 477.3 kB / 423.8 MB, free: 6.703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.297e-06/0.1356, allocations: 0 / 423.8 MB, free: 6.703 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001155/0.1357, allocations: 43.97 kB / 423.8 MB, free: 6.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.1357, allocations: 4 kB / 423.8 MB, free: 6.656 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.977e-05/0.1358, allocations: 51.97 kB / 423.9 MB, free: 6.605 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.439e-06/0.1358, allocations: 3.938 kB / 423.9 MB, free: 6.602 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.1358, allocations: 4 kB / 423.9 MB, free: 6.598 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001174/0.137, allocations: 0.6092 MB / 424.5 MB, free: 5.957 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002822/0.1373, allocations: 196.8 kB / 424.7 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001213/0.1374, allocations: 16 kB / 424.7 MB, free: 5.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00016/0.1376, allocations: 23.98 kB / 424.7 MB, free: 5.707 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002342/0.1378, allocations: 79.92 kB / 424.8 MB, free: 5.629 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003031/0.1381, allocations: 287.7 kB / 425.1 MB, free: 5.348 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002239/0.1383, allocations: 205.9 kB / 425.3 MB, free: 5.145 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1384, allocations: 0 / 425.3 MB, free: 5.145 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000443/0.1388, allocations: 95.89 kB / 425.4 MB, free: 5.051 MB / 350.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.0002337/0.139, allocations: 150.3 kB / 425.5 MB, free: 4.895 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001114/0.1402, allocations: 0.553 MB / 426.1 MB, free: 4.316 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.1402, allocations: 0 / 426.1 MB, free: 4.316 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005756/0.1408, allocations: 354.5 kB / 426.4 MB, free: 3.945 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001411/0.1422, allocations: 338.3 kB / 426.8 MB, free: 3.648 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001446/0.1436, allocations: 0.7558 MB / 427.5 MB, free: 2.859 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004797/0.1441, allocations: 0.8033 MB / 428.3 MB, free: 2.031 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001083/0.1452, allocations: 366.5 kB / 428.7 MB, free: 1.672 MB / 350.1 MB Notification: Performance of SimCode: time 9.01e-07/0.1452, allocations: 3.938 kB / 428.7 MB, free: 1.668 MB / 350.1 MB Notification: Performance of Templates: time 0.1799/0.3251, allocations: 8.31 MB / 437 MB, free: 20.8 MB / 350.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.915359501028433]