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.00147/0.00147, allocations: 116.8 kB / 19.17 MB, free: 3.895 MB / 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.001847/0.001847, allocations: 214.6 kB / 22.13 MB, free: 0.9414 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.466/1.466, allocations: 230.2 MB / 255.1 MB, free: 15.26 MB / 206.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.001857/0.001857, allocations: 63.89 kB / 374.5 MB, free: 9.934 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0955/0.09736, allocations: 53.32 MB / 427.8 MB, free: 4.512 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003397/0.1008, allocations: 2.156 MB / 430 MB, free: 2.348 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002506/0.1033, allocations: 1.161 MB / 431.2 MB, free: 1.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001076/0.1034, allocations: 11.94 kB / 431.2 MB, free: 1.168 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001881/0.1036, allocations: 47.58 kB / 431.2 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00013/0.1037, allocations: 39.64 kB / 431.2 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005098/0.1042, allocations: 175.7 kB / 431.4 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005258/0.1047, allocations: 463.6 kB / 431.9 MB, free: 468 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002496/0.105, allocations: 120.9 kB / 432 MB, free: 344 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1761/0.2811, allocations: 0.8355 MB / 432.8 MB, free: 8.926 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004165/0.2815, allocations: 266 kB / 433.1 MB, free: 8.918 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001347/0.2817, allocations: 43 kB / 433.1 MB, free: 8.918 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000116/0.2818, allocations: 42.22 kB / 433.2 MB, free: 8.918 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001918/0.282, allocations: 156.3 kB / 433.3 MB, free: 8.898 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002211/0.2822, allocations: 218.2 kB / 433.5 MB, free: 8.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007171/0.2829, allocations: 0.9302 MB / 434.5 MB, free: 8.766 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.2829, allocations: 0.6562 kB / 434.5 MB, free: 8.766 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2829, allocations: 1.156 kB / 434.5 MB, free: 8.766 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.007e-05/0.2829, allocations: 0.9062 kB / 434.5 MB, free: 8.766 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.001164/0.2841, allocations: 0.8779 MB / 435.3 MB, free: 8.215 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.491e-05/0.2841, allocations: 14.53 kB / 435.4 MB, free: 8.211 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001379/0.2843, allocations: 49.53 kB / 435.4 MB, free: 8.188 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004052/0.2847, allocations: 350.9 kB / 435.8 MB, free: 7.953 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.515e-05/0.2847, allocations: 28.06 kB / 435.8 MB, free: 7.953 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.598e-05/0.2848, allocations: 32.91 kB / 435.8 MB, free: 7.953 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009219/0.2857, allocations: 490.9 kB / 436.3 MB, free: 7.914 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.69e-05/0.2857, allocations: 3.938 kB / 436.3 MB, free: 7.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.691e-05/0.2858, allocations: 15.97 kB / 436.3 MB, free: 7.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.129e-05/0.2858, allocations: 8.516 kB / 436.3 MB, free: 7.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008082/0.2866, allocations: 378.9 kB / 436.7 MB, free: 7.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001895/0.2885, allocations: 1.114 MB / 437.8 MB, free: 7.594 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001132/0.2896, allocations: 421 kB / 438.2 MB, free: 7.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003556/0.29, allocations: 169.6 kB / 438.4 MB, free: 7.562 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.277e-05/0.2901, allocations: 8.703 kB / 438.4 MB, free: 7.562 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006461/0.2907, allocations: 341.5 kB / 438.7 MB, free: 7.516 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 2.896e-06/0.2907, allocations: 4.719 kB / 438.7 MB, free: 7.516 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.001532/0.2923, allocations: 0.7292 MB / 439.5 MB, free: 7.301 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.19e-05/0.2923, allocations: 110 kB / 439.6 MB, free: 7.176 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000313/0.2926, allocations: 312.7 kB / 439.9 MB, free: 6.996 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.378e-05/0.2927, allocations: 39.8 kB / 439.9 MB, free: 6.957 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000106/0.2928, allocations: 179.3 kB / 440.1 MB, free: 6.816 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001064/0.2929, allocations: 90.33 kB / 440.2 MB, free: 6.762 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002908/0.2932, allocations: 183.4 kB / 440.3 MB, free: 6.707 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.195e-05/0.2933, allocations: 343.2 kB / 440.7 MB, free: 6.379 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003951/0.2937, allocations: 180.3 kB / 440.9 MB, free: 6.336 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004093/0.2941, allocations: 242.6 kB / 441.1 MB, free: 6.234 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008947/0.295, allocations: 0.5128 MB / 441.6 MB, free: 5.953 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.295, allocations: 0 / 441.6 MB, free: 5.953 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001177/0.2961, allocations: 0.6458 MB / 442.3 MB, free: 5.723 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.198e-05/0.2962, allocations: 65.31 kB / 442.3 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.2962, allocations: 1.781 kB / 442.3 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.977e-05/0.2962, allocations: 3.703 kB / 442.3 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001576/0.2964, allocations: 53.69 kB / 442.4 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.859e-06/0.2964, allocations: 12.02 kB / 442.4 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002218/0.2966, allocations: 31.58 kB / 442.4 MB, free: 5.637 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002743/0.2969, allocations: 282 kB / 442.7 MB, free: 5.617 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.000319/0.2972, allocations: 291.8 kB / 443 MB, free: 5.391 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.8e-05/0.2973, allocations: 40.22 kB / 443 MB, free: 5.367 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.764e-05/0.2973, allocations: 34.73 kB / 443.1 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.2974, allocations: 3.781 kB / 443.1 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.418e-06/0.2974, allocations: 3.938 kB / 443.1 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.513e-06/0.2974, allocations: 2.656 kB / 443.1 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005499/0.2979, allocations: 484.9 kB / 443.5 MB, free: 5.043 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.2979, allocations: 0 / 443.5 MB, free: 5.043 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001174/0.298, allocations: 48.97 kB / 443.6 MB, free: 5.043 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.298, allocations: 1.219 kB / 443.6 MB, free: 5.043 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.28e-05/0.2981, allocations: 46.45 kB / 443.6 MB, free: 5.039 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.2981, allocations: 4.969 kB / 443.6 MB, free: 5.035 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.2981, allocations: 0.7969 kB / 443.6 MB, free: 5.035 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001079/0.2992, allocations: 0.605 MB / 444.2 MB, free: 4.789 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002548/0.2995, allocations: 197 kB / 444.4 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.596e-05/0.2996, allocations: 14.38 kB / 444.4 MB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001594/0.2997, allocations: 17.83 kB / 444.5 MB, free: 4.637 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002194/0.2999, allocations: 90.92 kB / 444.6 MB, free: 4.621 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002623/0.3002, allocations: 282.8 kB / 444.8 MB, free: 4.598 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001842/0.3004, allocations: 201.4 kB / 445 MB, free: 4.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3004, allocations: 2.062 kB / 445 MB, free: 4.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004539/0.3008, allocations: 103.3 kB / 445.1 MB, free: 4.457 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.00019/0.301, allocations: 144.8 kB / 445.3 MB, free: 4.348 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001039/0.3021, allocations: 0.5445 MB / 445.8 MB, free: 4.129 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3021, allocations: 1.406 kB / 445.8 MB, free: 4.129 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005025/0.3026, allocations: 344.6 kB / 446.2 MB, free: 3.965 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00132/0.3039, allocations: 340.4 kB / 446.5 MB, free: 3.902 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001321/0.3052, allocations: 0.7528 MB / 447.2 MB, free: 3.488 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002569/0.3055, allocations: 0.8047 MB / 448 MB, free: 2.777 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001151/0.3066, allocations: 362.1 kB / 448.4 MB, free: 2.551 MB / 350.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3066, allocations: 1.469 kB / 448.4 MB, free: 2.551 MB / 350.1 MB Notification: Performance of Templates: time 0.01135/0.318, allocations: 8.333 MB / 456.7 MB, free: 15.45 MB / 366.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 -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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/FlipFlop/FlipFlop.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 7.976908894954249]