Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001233/0.001233, allocations: 79.73 kB / 21.25 MB, free: 396 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001347/0.001347, allocations: 160.7 kB / 24.5 MB, free: 3.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.464/1.464, allocations: 177.1 MB / 204.7 MB, free: 8.887 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Digital.Examples.FlipFlop") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002021/0.002021, allocations: 61.12 kB / 325.5 MB, free: 204 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1186, allocations: 53.39 MB / 378.9 MB, free: 15.49 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003428/0.122, allocations: 2.001 MB / 380.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002487/0.1245, allocations: 1.103 MB / 382 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001093/0.1246, allocations: 4 kB / 382 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002159/0.1249, allocations: 47.52 kB / 382.1 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001256/0.125, allocations: 47.64 kB / 382.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005354/0.1255, allocations: 175.7 kB / 382.3 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005257/0.126, allocations: 467.6 kB / 382.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002297/0.1263, allocations: 105.3 kB / 382.8 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009435/0.1272, allocations: 0.8461 MB / 383.7 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003953/0.1276, allocations: 250.9 kB / 383.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000126/0.1277, allocations: 44 kB / 384 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001116/0.1278, allocations: 48 kB / 384 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002227/0.1281, allocations: 151.5 kB / 384.2 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002512/0.1283, allocations: 175 kB / 384.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000928/0.1292, allocations: 0.9341 MB / 385.3 MB, free: 9.098 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1293, allocations: 0 / 385.3 MB, free: 9.098 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1293, allocations: 0 / 385.3 MB, free: 9.098 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.3e-05/0.1293, allocations: 0 / 385.3 MB, free: 9.098 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.001306/0.1306, allocations: 0.8162 MB / 386.1 MB, free: 8.238 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.1306, allocations: 11.98 kB / 386.1 MB, free: 8.227 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001303/0.1307, allocations: 56.64 kB / 386.2 MB, free: 8.172 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005127/0.1313, allocations: 285.3 kB / 386.4 MB, free: 7.871 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.397e-05/0.1313, allocations: 29.03 kB / 386.5 MB, free: 7.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.534e-05/0.1314, allocations: 32.38 kB / 386.5 MB, free: 7.809 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009226/0.1323, allocations: 0.5483 MB / 387 MB, free: 7.242 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.1323, allocations: 0 / 387 MB, free: 7.242 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.721e-05/0.1324, allocations: 12 kB / 387.1 MB, free: 7.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.575e-05/0.1324, allocations: 8 kB / 387.1 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007926/0.1332, allocations: 441.7 kB / 387.5 MB, free: 6.781 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00178/0.135, allocations: 0.9614 MB / 388.5 MB, free: 5.781 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001132/0.1361, allocations: 479.5 kB / 388.9 MB, free: 5.293 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003716/0.1365, allocations: 224.7 kB / 389.1 MB, free: 5.059 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.328e-05/0.1365, allocations: 288 / 389.1 MB, free: 5.059 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006865/0.1372, allocations: 407.2 kB / 389.5 MB, free: 4.637 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 1.683e-06/0.1372, allocations: 0 / 389.5 MB, free: 4.637 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.001512/0.1387, allocations: 0.8553 MB / 390.4 MB, free: 3.738 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.233e-05/0.1388, allocations: 114.8 kB / 390.5 MB, free: 3.602 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003434/0.1391, allocations: 301.7 kB / 390.8 MB, free: 3.297 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.741e-05/0.1392, allocations: 41.7 kB / 390.8 MB, free: 3.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001685/0.1394, allocations: 188.9 kB / 391 MB, free: 3.062 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001083/0.1395, allocations: 75.48 kB / 391.1 MB, free: 2.988 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002716/0.1398, allocations: 198 kB / 391.3 MB, free: 2.789 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.1399, allocations: 342.8 kB / 391.6 MB, free: 2.445 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004036/0.1403, allocations: 244.2 kB / 391.9 MB, free: 2.195 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004671/0.1408, allocations: 300.6 kB / 392.2 MB, free: 1.871 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009603/0.1418, allocations: 0.5253 MB / 392.7 MB, free: 1.309 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.243e-06/0.1418, allocations: 4 kB / 392.7 MB, free: 1.305 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001332/0.1431, allocations: 0.7108 MB / 393.4 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.812e-05/0.1432, allocations: 59.41 kB / 393.5 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.1432, allocations: 8.031 kB / 393.5 MB, free: 496 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.718e-05/0.1432, allocations: 4 kB / 393.5 MB, free: 492 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001913/0.1434, allocations: 59.89 kB / 393.5 MB, free: 432 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.44e-05/0.1434, allocations: 7.938 kB / 393.5 MB, free: 424 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002412/0.1437, allocations: 31.88 kB / 393.6 MB, free: 392 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003497/0.144, allocations: 279.7 kB / 393.8 MB, free: 112 kB / 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.0004379/0.1445, allocations: 293.1 kB / 394.1 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.75e-05/0.1445, allocations: 35.8 kB / 394.2 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.954e-05/0.1446, allocations: 30.97 kB / 394.2 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.113e-05/0.1446, allocations: 7.984 kB / 394.2 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.1447, allocations: 0 / 394.2 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.1447, allocations: 0 / 394.2 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005237/0.1452, allocations: 364.9 kB / 394.6 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.1452, allocations: 0 / 394.6 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001101/0.1453, allocations: 55.97 kB / 394.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.1453, allocations: 0 / 394.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.538e-05/0.1454, allocations: 51.97 kB / 394.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.068e-06/0.1454, allocations: 4 kB / 394.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.1454, allocations: 0 / 394.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0011/0.1465, allocations: 0.6761 MB / 395.3 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003056/0.1468, allocations: 127.6 kB / 395.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.9e-05/0.1469, allocations: 16 kB / 395.5 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001446/0.147, allocations: 19.98 kB / 395.5 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002317/0.1473, allocations: 91.89 kB / 395.6 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002964/0.1475, allocations: 283.7 kB / 395.9 MB, free: 13.98 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002305/0.1478, allocations: 205.2 kB / 396.1 MB, free: 13.79 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1478, allocations: 0 / 396.1 MB, free: 13.79 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004444/0.1482, allocations: 103.8 kB / 396.2 MB, free: 13.68 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.0001983/0.1484, allocations: 133.8 kB / 396.3 MB, free: 13.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001073/0.1495, allocations: 0.6612 MB / 397 MB, free: 12.83 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.1495, allocations: 0 / 397 MB, free: 12.83 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005506/0.15, allocations: 414.1 kB / 397.4 MB, free: 12.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001238/0.1513, allocations: 336.2 kB / 397.7 MB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001377/0.1527, allocations: 0.7658 MB / 398.5 MB, free: 11.29 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002352/0.1529, allocations: 208.3 kB / 398.7 MB, free: 11.06 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001373/0.1543, allocations: 0.7471 MB / 399.4 MB, free: 10.31 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006969/0.155, allocations: 279.8 kB / 399.7 MB, free: 10.04 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.155, allocations: 0 / 399.7 MB, free: 10.04 MB / 366.1 MB Notification: Performance of Templates: time 0.01702/0.172, allocations: 11.5 MB / 411.2 MB, free: 14.45 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/FlipFlop/FlipFlop.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 4.650855023064651]