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.0008019/0.0008019, allocations: 88.28 kB / 21.43 MB, free: 3.133 MB / 18.57 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.004218/0.004218, allocations: 158 kB / 24.7 MB, free: 9.418 MB / 18.57 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 0.8617/0.8617, allocations: 177 MB / 204.9 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] 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 3.096e-06/3.096e-06, allocations: 0 / 325.8 MB, free: 15.26 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.831e-05/4.141e-05, allocations: 2.844 kB / 325.8 MB, free: 15.25 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003015/0.003056, allocations: 1.994 MB / 327.8 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002517/0.005573, allocations: 1.103 MB / 328.9 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001377/0.00571, allocations: 3.938 kB / 328.9 MB, free: 12.13 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000226/0.005936, allocations: 51.56 kB / 328.9 MB, free: 12.08 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001317/0.006068, allocations: 43.59 kB / 329 MB, free: 12.04 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005735/0.006642, allocations: 183.6 kB / 329.2 MB, free: 11.86 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005196/0.007161, allocations: 475.5 kB / 329.6 MB, free: 11.39 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002468/0.007408, allocations: 109.3 kB / 329.7 MB, free: 11.29 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00092/0.008328, allocations: 0.9164 MB / 330.6 MB, free: 10.37 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003222/0.00865, allocations: 235.3 kB / 330.9 MB, free: 10.14 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.132e-05/0.008741, allocations: 44 kB / 330.9 MB, free: 10.1 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.793e-05/0.008819, allocations: 40 kB / 331 MB, free: 10.06 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001769/0.008996, allocations: 159.4 kB / 331.1 MB, free: 9.902 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001854/0.009182, allocations: 143.5 kB / 331.2 MB, free: 9.762 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008991/0.01008, allocations: 0.9656 MB / 332.2 MB, free: 8.793 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.01009, allocations: 4 kB / 332.2 MB, free: 8.789 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.01009, allocations: 0 / 332.2 MB, free: 8.789 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.099e-05/0.01011, allocations: 0 / 332.2 MB, free: 8.789 MB / 298.7 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.00129/0.0114, allocations: 0.8045 MB / 333 MB, free: 7.941 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/0.01145, allocations: 11.98 kB / 333 MB, free: 7.93 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001302/0.01158, allocations: 56.64 kB / 333.1 MB, free: 7.875 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003453/0.01192, allocations: 280.6 kB / 333.4 MB, free: 7.574 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.212e-05/0.01196, allocations: 29.03 kB / 333.4 MB, free: 7.543 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.088e-05/0.01201, allocations: 36.36 kB / 333.4 MB, free: 7.508 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000596/0.0126, allocations: 0.5446 MB / 334 MB, free: 6.945 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.01261, allocations: 4.188 kB / 334 MB, free: 6.941 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.944e-05/0.01265, allocations: 16.38 kB / 334 MB, free: 6.926 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.275e-06/0.01266, allocations: 11.94 kB / 334 MB, free: 6.914 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004715/0.01313, allocations: 441.8 kB / 334.4 MB, free: 6.473 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001171/0.0143, allocations: 0.9537 MB / 335.4 MB, free: 5.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006772/0.01498, allocations: 483.4 kB / 335.9 MB, free: 4.988 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002113/0.01519, allocations: 220.7 kB / 336.1 MB, free: 4.758 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.099e-05/0.01522, allocations: 8.281 kB / 336.1 MB, free: 4.75 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004356/0.01566, allocations: 407.2 kB / 336.5 MB, free: 4.328 MB / 298.7 MB Notification: Performance of pre-optimization done (n=35): time 1.994e-06/0.01566, allocations: 0 / 336.5 MB, free: 4.328 MB / 298.7 MB Notification: Performance of matching and sorting (n=35): time 0.0009093/0.01657, allocations: 0.8513 MB / 337.3 MB, free: 3.434 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.74e-05/0.01663, allocations: 114.8 kB / 337.4 MB, free: 3.297 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002176/0.01685, allocations: 305.7 kB / 337.7 MB, free: 2.992 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.743e-05/0.01688, allocations: 41.64 kB / 337.8 MB, free: 2.945 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.01699, allocations: 192.9 kB / 338 MB, free: 2.75 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.558e-05/0.01705, allocations: 79.42 kB / 338.1 MB, free: 2.672 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001599/0.01721, allocations: 190 kB / 338.2 MB, free: 2.48 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.072e-05/0.0173, allocations: 342.8 kB / 338.6 MB, free: 2.137 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002378/0.01754, allocations: 240.3 kB / 338.8 MB, free: 1.887 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002518/0.01779, allocations: 296.6 kB / 339.1 MB, free: 1.57 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004822/0.01827, allocations: 0.5301 MB / 339.6 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.01828, allocations: 3.938 kB / 339.6 MB, free: 0.9922 MB / 298.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006725/0.01895, allocations: 0.7099 MB / 340.3 MB, free: 260 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.235e-05/0.01899, allocations: 59.41 kB / 340.4 MB, free: 188 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.019, allocations: 0 / 340.4 MB, free: 188 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/0.01902, allocations: 4 kB / 340.4 MB, free: 184 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.644e-05/0.01911, allocations: 63.89 kB / 340.5 MB, free: 120 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.01912, allocations: 7.938 kB / 340.5 MB, free: 112 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001161/0.01924, allocations: 31.92 kB / 340.5 MB, free: 80 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001704/0.01941, allocations: 283.7 kB / 340.8 MB, free: 15.8 MB / 314.7 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.0002444/0.01965, allocations: 293 kB / 341.1 MB, free: 15.49 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.605e-05/0.0197, allocations: 35.8 kB / 341.1 MB, free: 15.46 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.298e-05/0.01974, allocations: 34.97 kB / 341.1 MB, free: 15.43 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.01975, allocations: 4 kB / 341.1 MB, free: 15.42 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.01975, allocations: 7.984 kB / 341.1 MB, free: 15.41 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.01976, allocations: 0 / 341.1 MB, free: 15.41 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002969/0.02006, allocations: 357 kB / 341.5 MB, free: 15.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.02006, allocations: 3.938 kB / 341.5 MB, free: 15.03 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.964e-05/0.02012, allocations: 55.91 kB / 341.6 MB, free: 14.98 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.02012, allocations: 0 / 341.6 MB, free: 14.98 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.421e-05/0.02017, allocations: 51.97 kB / 341.6 MB, free: 14.93 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.02017, allocations: 0 / 341.6 MB, free: 14.93 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.02017, allocations: 0 / 341.6 MB, free: 14.93 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006326/0.0208, allocations: 0.6685 MB / 342.3 MB, free: 14.21 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001637/0.02097, allocations: 127.6 kB / 342.4 MB, free: 14.09 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.678e-05/0.02102, allocations: 20 kB / 342.4 MB, free: 14.07 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.445e-05/0.0211, allocations: 19.98 kB / 342.4 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001482/0.02125, allocations: 87.91 kB / 342.5 MB, free: 13.96 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001541/0.0214, allocations: 279.7 kB / 342.8 MB, free: 13.69 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001343/0.02153, allocations: 209.1 kB / 343 MB, free: 13.48 MB / 314.7 MB Notification: Performance of sort global known variables: time 1e-07/0.02153, allocations: 0 / 343 MB, free: 13.48 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002904/0.02182, allocations: 103.8 kB / 343.1 MB, free: 13.38 MB / 314.7 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.0001404/0.02196, allocations: 133.8 kB / 343.2 MB, free: 13.24 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006117/0.02258, allocations: 0.6573 MB / 343.9 MB, free: 12.54 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.02258, allocations: 0 / 343.9 MB, free: 12.54 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000315/0.02289, allocations: 422 kB / 344.3 MB, free: 12.09 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006922/0.02359, allocations: 340.1 kB / 344.6 MB, free: 11.78 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00096/0.02455, allocations: 0.8209 MB / 345.5 MB, free: 10.91 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001406/0.02469, allocations: 192.3 kB / 345.6 MB, free: 10.7 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007034/0.02539, allocations: 383.6 kB / 346 MB, free: 10.33 MB / 314.7 MB Notification: Performance of SimCode: time 1.412e-06/0.02539, allocations: 3.938 kB / 346 MB, free: 10.32 MB / 314.7 MB Notification: Performance of Templates: time 0.00711/0.0325, allocations: 8.327 MB / 354.3 MB, free: 1.676 MB / 314.7 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/FlipFlop/FlipFlop.csv","/var/lib/jenkins/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.941655521281064]